[PATCH v2 1/1] usb: storage: continue probe on "Invalid device"

Simon Glass sjg at chromium.org
Wed Aug 10 23:33:04 CEST 2022


On Wed, 10 Aug 2022 at 13:54, Janne Grunau <j at jannau.net> wrote:
>
> 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 at 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(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


>
> 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
>


More information about the U-Boot mailing list