Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on

From: Linus Torvalds
Date: Tue Jun 10 2008 - 12:37:44 EST




On Tue, 10 Jun 2008, Linus Torvalds wrote:
> +
> + intf = actconfig->interface[i];
> + driver = to_usb_driver(intf->dev.driver);
> + if (!driver)
> + continue;

This is wrong. It should be

if (!intf->dev.driver)
continue;
driver = to_usb_driver(intf->dev.driver);

because doing the check after the "to_usb_driver()" conversion is too
late. I copied the bug from Oliver's version.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/