All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/1] usb: storage: continue probe on "Invalid device"
@ 2022-08-10 19:54 Janne Grunau
  2022-08-10 21:33 ` Simon Glass
  2022-09-26  5:07 ` Janne Grunau
  0 siblings, 2 replies; 9+ messages in thread
From: Janne Grunau @ 2022-08-10 19:54 UTC (permalink / raw)
  To: Lukasz Majewski, u-boot; +Cc: AKASHI Takahiro, Simon Glass

Fixes a crash during probing of sd card readers without medium present.

Link: https://github.com/AsahiLinux/linux/issues/44
Link: https://lists.denx.de/pipermail/u-boot/2022-July/489717.html
Signed-off-by: Janne Grunau <j@jannau.net>
---
Changes since v1:
 - changed unconditiona return to "continue" as proposed by AKASHI Takahiro

 common/usb_storage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/usb_storage.c b/common/usb_storage.c
index eaa31374ef73..f9204552a683 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -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);
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-04 11:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 19:54 [PATCH v2 1/1] usb: storage: continue probe on "Invalid device" Janne Grunau
2022-08-10 21:33 ` Simon Glass
2022-09-26  5:07 ` Janne Grunau
2022-09-28 10:20   ` Simon Glass
2022-11-03 21:36     ` Janne Grunau
2022-11-03 22:23       ` Marek Vasut
2022-11-03 22:38         ` Marek Vasut
2022-11-04  7:35         ` Janne Grunau
2022-11-04 11:29           ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.