[PATCH] USB: Use num_altsetting in usbnet and usbtest
This patch fixes usbnet and usbtest. When checking endpoints, they iterate through all interfaces out to intf->max_altsetting, but they should only go up to intf->num_altsetting. The max_altsetting value refers to the amount of space _allocated_ for usb_host_interface structures, not the number that are really in use.
Showing
Please register or sign in to comment