diff options
| author | Haotian Zhang <[email protected]> | 2025-11-24 02:22:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-11-24 17:00:45 +0000 |
| commit | 74851fbb6d647304f8a7dc491434d3a335ef4b8d (patch) | |
| tree | 3d99c37f5ea8c5d6a41f2f621731d8f2eecd804c /net/unix/af_unix.c | |
| parent | USB: storage: Remove subclass and protocol overrides from Novatek quirk (diff) | |
| download | kernel-74851fbb6d647304f8a7dc491434d3a335ef4b8d.tar.gz kernel-74851fbb6d647304f8a7dc491434d3a335ef4b8d.zip | |
usb: gadget: renesas_usbf: Handle devm_pm_runtime_enable() errors
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 <[email protected]>
Acked-by: Herve Codina <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
