diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index e5d5a2603f3ab9c11c19e03a7ffea31172a39d45..cd220277c6c3005d0cbcfa26ca24fdac7fd5abdf 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -1471,7 +1471,7 @@ int usb_reset_configuration(struct usb_device *dev) /* If not, reinstate the old alternate settings */ if (retval < 0) { reset_old_alts: - for (; i >= 0; i--) { + for (i--; i >= 0; i--) { struct usb_interface *intf = config->interface[i]; struct usb_host_interface *alt;