mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't allow USB device drivers to parent own interface.
It will prevent proper USB device detach. MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a37a5246ca
commit
5e0552018c
1 changed files with 1 additions and 1 deletions
|
|
@ -1402,7 +1402,7 @@ usbd_set_parent_iface(struct usb_device *udev, uint8_t iface_index,
|
|||
{
|
||||
struct usb_interface *iface;
|
||||
|
||||
if (udev == NULL) {
|
||||
if (udev == NULL || iface_index == parent_index) {
|
||||
/* nothing to do */
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue