Skip to contentSkip to conversation

usb: storage: continue probe on "Invalid device"

PATCH Applied Janne Grunau 2 participants 2 messages Nov 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 usb: storage: continue probe on "Invalid device"

Fixes a crash during probing of sd card readers without medium present. Seen with the device below but reported for many other devices.

idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x0326 Card reader
bcdDevice 11.24

  iManufacturer           1 Realtek
  iProduct                2 USB3.0 Card Reader
  iSerial                 3 201404081410
---
 common/usb_storage.c | 1 +
 1 file changed, 1 insertion(+)
common/usb_storage.c +1 -0
index eaa31374ef73..f9204552a683 100644
@@ -239,6 +239,7 @@ static int usb_stor_probe_device(struct usb_device *udev)
 			ret = device_unbind(dev);
 			if (ret)
 				return ret;
+			continue;
 		}
 
 		ret = blk_probe_or_unbind(dev);
Signature · 1 line
2.37.4
Applied
#1 lore raw
Quoted 10 lines · Janne Grunau

Fixes a crash during probing of sd card readers without medium present. Seen with the device below but reported for many other devices.

   idVendor           0x0bda Realtek Semiconductor Corp.
   idProduct          0x0326 Card reader
   bcdDevice           11.24
   iManufacturer           1 Realtek
   iProduct                2 USB3.0 Card Reader
   iSerial                 3 201404081410
Quoted 6 lines

Applied, thanks.