linux/drivers/usb
Haotian Zhang 74851fbb6d 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: 3e6e14ffde ("usb: gadget: udc: add Renesas RZ/N1 USBF controller support")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251124022215.1619-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-24 18:00:45 +01:00
..
atm usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init() 2025-07-24 11:33:31 +02:00
c67x00 usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3 usb: cdns3: Fix double resource release in cdns3_pci_probe 2025-10-28 15:46:16 +01:00
chipidea usb: chipidea: imx: improve usbmisc_imx7d_pullup() 2025-08-13 17:19:10 +02:00
class usb: usblp: Use min_t() to improve usblp_read() 2025-09-06 15:20:22 +02:00
common usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-04-11 16:08:34 +02:00
core usb/core/quirks: Add Huawei ME906S to wakeup quirk 2025-10-22 10:00:57 +02:00
dwc2 usb: dwc2: Add support for 'maximum-speed' property 2025-09-12 14:03:10 +02:00
dwc3 usb: dwc3: Fix race condition between concurrent dwc3_remove_requests() call paths 2025-11-21 15:15:48 +01:00
early usb: early: xhci-dbc: Fix early_ioremap leak 2025-07-07 11:04:46 +02:00
fotg210 usb: fotg210-hcd: Switch to use hrtimer_setup() 2025-02-18 11:19:02 +01:00
gadget usb: gadget: renesas_usbf: Handle devm_pm_runtime_enable() errors 2025-11-24 18:00:45 +01:00
host xhci: dbgtty: fix device unregister 2025-11-21 15:15:39 +01:00
image scsi: Rename .slave_alloc() and .slave_destroy() 2024-12-04 15:34:28 -05:00
isp1760 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
misc usb: misc: Add x86 dependency for Intel USBIO driver 2025-10-13 09:37:47 +02:00
mon usb: mon: Increase BUFF_MAX to 64 MiB to support multi-MB URBs 2025-09-17 12:40:05 +02:00
mtu3 Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
musb usb: musb: dsps: use platform_get_irq_byname_optional() for vbus IRQ 2025-09-06 15:22:20 +02:00
phy usb: phy: twl6030: Fix incorrect type for ret 2025-09-06 15:21:45 +02:00
renesas_usbhs usb: renesas_usbhs: Fix synchronous external abort on unbind 2025-10-28 15:45:22 +01:00
roles usb: roles: set switch registered flag early on 2025-02-14 09:26:25 +01:00
serial USB: serial: option: add support for Rolling RW101R-GL 2025-11-10 12:33:36 +01:00
storage USB: storage: Remove subclass and protocol overrides from Novatek quirk 2025-11-22 14:01:30 +01:00
typec usb: typec: ucsi: psy: Set max current to zero when disconnected 2025-11-09 11:11:24 +09:00
usbip usb: vhci-hcd: Prevent suspending virtually attached devices 2025-09-25 18:52:32 +02:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00