• Alan Stern's avatar
    [PATCH] USB: Use num_altsetting in usbnet and usbtest · 4f90b98e
    Alan Stern authored
    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.
    4f90b98e
usbtest.c 42.3 KB