summaryrefslogtreecommitdiff
path: root/drivers/usb/storage/usual-tables.c
diff options
context:
space:
mode:
authorDave Young <hidave.darkstar@gmail.com>2009-02-14 16:21:13 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-25 02:20:33 +0300
commite4abe6658aa17a5d7e7321dfda807d287255511b (patch)
tree14d475f4f7af7f68f431b6f9be793fdb27a7b046 /drivers/usb/storage/usual-tables.c
parentd0626808f7a6181c1c750d261da9a7a845c29e13 (diff)
downloadlinux-e4abe6658aa17a5d7e7321dfda807d287255511b.tar.xz
usb-serial: fix usb_serial_register bug when boot with nousb param
With "nousb" cmdline booting, built-in serial drivers (ie. airecable) will trigger kernel oops. Indeed, if nousb, usb_serial_init will failed, and the usb serial bus type will not be registerd, then usb_serial_register call driver_register which try to register the driver to a not registered bus. Here add usb_disabled() check in usb_serial_register to fix it. Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/usual-tables.c')
0 files changed, 0 insertions, 0 deletions