Re: [PATCH] usb: gadget: renesas_usbf: Handle devm_pm_runtime_enable() errors
From: Herve Codina
Date: Mon Nov 24 2025 - 02:44:24 EST
Hi Haotian,
On Mon, 24 Nov 2025 10:22:15 +0800
Haotian Zhang <vulab@xxxxxxxxxxx> wrote:
> devm_pm_runtime_enable() can fail due to memory allocation.
> The current code ignores its return value, potentially causing
> pm_runtime_resume_and_get() to operate on uninitialized runtime
> PM state.
>
> Check the return value of devm_pm_runtime_enable() and return on failure.
>
> Fixes: 3e6e14ffdea4 ("usb: gadget: udc: add Renesas RZ/N1 USBF controller support")
> Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
Thanks for the patch.
Acked-by: Herve Codina <herve.codina@xxxxxxxxxxx>
Best regards,
Hervé