File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1775,6 +1775,10 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1775
1775
} else if (!info -> in || !info -> out )
1776
1776
status = usbnet_get_endpoints (dev , udev );
1777
1777
else {
1778
+ u8 ep_addrs [3 ] = {
1779
+ info -> in + USB_DIR_IN , info -> out + USB_DIR_OUT , 0
1780
+ };
1781
+
1778
1782
dev -> in = usb_rcvbulkpipe (xdev , info -> in );
1779
1783
dev -> out = usb_sndbulkpipe (xdev , info -> out );
1780
1784
if (!(info -> flags & FLAG_NO_SETINT ))
@@ -1784,6 +1788,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1784
1788
else
1785
1789
status = 0 ;
1786
1790
1791
+ if (status == 0 && !usb_check_bulk_endpoints (udev , ep_addrs ))
1792
+ status = - EINVAL ;
1787
1793
}
1788
1794
if (status >= 0 && dev -> status )
1789
1795
status = init_status (dev , udev );
You can’t perform that action at this time.
0 commit comments