]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: storage: shuttle_usbat: fix discs being detected twice
authorDaniele Forsi <dforsi@gmail.com>
Tue, 29 Apr 2014 09:44:03 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:15 +0000 (10:28 -0700)
commit6212307c6babf64d8a857df892a70c618f332eb3
tree12621c9046cb598a0214878bbe3ff95060b61079
parent9917280e2277d0b6b1f209c5753c67b673da3ba2
usb: storage: shuttle_usbat: fix discs being detected twice

commit df602c2d2358f02c6e49cffc5b49b9daa16db033 upstream.

Even if the USB-to-ATAPI converter supported multiple LUNs, this
driver would always detect the same physical device or media because
it doesn't use srb->device->lun in any way.
Tested with an Hewlett-Packard CD-Writer Plus 8200e.

Signed-off-by: Daniele Forsi <dforsi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/shuttle_usbat.c