Re: [PATCH] usb: fotg210-udc: fix error return code in fotg210_udc_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Yang!

On Fri, Dec 30, 2022 at 7:57 AM Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote:

> After commit  5f217ccd520f ("fotg210-udc: Support optional external PHY"),
> the error code is re-assigned to 0 in fotg210_udc_probe(), if allocate or
> map memory fails after the assignment, it can't return an error code. Set
> the error code to -ENOMEM to fix this problem.
>
> Fixes: 5f217ccd520f ("fotg210-udc: Support optional external PHY")
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux