Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110673907
D43960.id134639.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
429 B
Referenced Files
None
Subscribers
None
D43960.id134639.diff
View Options
diff --git a/sys/dev/usb/usb_generic.c b/sys/dev/usb/usb_generic.c
--- a/sys/dev/usb/usb_generic.c
+++ b/sys/dev/usb/usb_generic.c
@@ -2377,12 +2377,10 @@
break;
case USB_IFACE_DRIVER_ACTIVE:
-
n = *u.pint & 0xFF;
-
iface = usbd_get_iface(f->udev, n);
-
- if (iface && iface->subdev)
+ if (iface != NULL && iface->subdev != NULL &&
+ device_is_alive(iface->subdev))
error = 0;
else
error = ENXIO;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 6:37 PM (4 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16776943
Default Alt Text
D43960.id134639.diff (429 B)
Attached To
Mode
D43960: ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver
Attached
Detach File
Event Timeline
Log In to Comment