[PATCH] usb: dwc3-meson-g12a: Fix an error handling path in dwc3_meson_g12a_probe()

Martin Blumenstingl martin.blumenstingl at googlemail.com
Mon Jun 12 13:24:47 PDT 2023


On Sat, Jun 10, 2023 at 3:32 PM Christophe JAILLET
<christophe.jaillet at wanadoo.fr> wrote:
>
> If dwc3_meson_g12a_otg_init() fails, resources allocated by the previous
> of_platform_populate() call should be released, as already done in the
> error handling path.
>
> Fixes: 1e355f21d3fb ("usb: dwc3: Add Amlogic A1 DWC3 glue")
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>

We should move to devm_of_platform_populate() mid term.
That said, this fix is good for now because it's simple and can be backported.



More information about the linux-arm-kernel mailing list