linux/drivers/usb/musb
Guangshuo Li c947360ae6 usb: musb: omap2430: Do not put borrowed of_node in probe
omap2430_probe() stores pdev->dev.of_node in a local np variable. This is
a borrowed pointer and the probe function does not take a reference to
it.

The success and error paths nevertheless call of_node_put(np). This drops
a reference that is owned by the platform device, and can leave
pdev->dev.of_node with an unbalanced reference count.

Do not put the borrowed platform device node from omap2430_probe().
References taken for the child MUSB device are handled by the device core,
and the ctrl-module phandle reference is still released separately.

Fixes: ffbe2feac5 ("usb: musb: omap2430: Fix probe regression for missing resources")
Cc: stable <stable@kernel.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Link: https://patch.msgid.link/20260713114711.955253-1-lgs201920130244@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-16 17:11:35 +02:00
..
cppi_dma.h
da8xx.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
jz4740.c usb: musb: Constify struct musb_fifo_cfg 2025-02-03 16:29:53 +01:00
Kconfig usb: musb: omap2430: enable compile testing 2025-07-25 10:50:39 +02:00
Makefile
mediatek.c usb: musb: Constify struct musb_fifo_cfg 2025-02-03 16:29:53 +01:00
mpfs.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
musb_core.c usb: musb: Use safer strscpy() instead of strcpy() 2026-03-11 15:39:04 +01:00
musb_core.h
musb_cppi41.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
musb_debug.h
musb_debugfs.c usb: Remove redundant pm_runtime_mark_last_busy() calls 2025-11-21 15:11:53 +01:00
musb_dma.h
musb_dsps.c usb: Remove redundant pm_runtime_mark_last_busy() calls 2025-11-21 15:11:53 +01:00
musb_gadget_ep0.c
musb_gadget.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
musb_gadget.h
musb_host.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h
musb_virthub.c
musbhsdma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
omap2430.c usb: musb: omap2430: Do not put borrowed of_node in probe 2026-07-16 17:11:35 +02:00
omap2430.h
sunxi.c usb: musb: Constify struct musb_fifo_cfg 2025-02-03 16:29:53 +01:00
tusb6010_omap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tusb6010.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
tusb6010.h
ux500_dma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ux500.c