linux/drivers/net/wireless/ti/wlcore
Wentao Liang a8b8881d0c wifi: wlcore: Fix runtime PM leak in wlcore_remove()
pm_runtime_get_sync() keeps the runtime PM usage counter elevated even
when it returns an error, so the reference taken at the beginning of
wlcore_remove() has to be dropped on every exit path. When the device
was not initialized the function returned early without doing so,
leaking the reference.

Release it with pm_runtime_put_noidle() as done on the other early error
paths of this driver.

Fixes: fa2648a34e ("wlcore: Add support for runtime PM")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260917122325.2150910-1-vulab@iscas.ac.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-09-21 16:00:51 +02:00
..
acx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
acx.h
boot.c wifi: wlcore: boot: replace deprecated strncpy with strscpy 2023-10-23 20:29:15 +03:00
boot.h
cmd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cmd.h wifi: wlcore: Add support for IGTK key 2026-01-19 10:17:03 +01:00
conf.h
debug.h
debugfs.c net: wireless: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-30 08:38:37 +01:00
debugfs.h
event.c wifi: wlcore: correctness fix fwlog reading 2024-06-18 13:22:10 +03:00
event.h
hw_ops.h
ini.h
init.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
init.h
io.c
io.h
Kconfig
main.c wifi: wlcore: Fix runtime PM leak in wlcore_remove() 2026-09-21 16:00:51 +02:00
Makefile
ps.c
ps.h
rx.c
rx.h
scan.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
scan.h
sdio.c wifi: wlcore: sdio: Use pm_ptr instead of #ifdef CONFIG_PM 2026-01-08 13:29:38 +01:00
spi.c wifi: fill in MODULE_DESCRIPTION()s for wlcore 2024-01-31 18:32:31 +02:00
sysfs.c net: wireless: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-30 08:38:37 +01:00
sysfs.h
testmode.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
testmode.h
tx.c wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom 2026-03-18 09:05:06 +01:00
tx.h
vendor_cmd.c net: wireless: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-30 08:38:37 +01:00
vendor_cmd.h
wl12xx_80211.h wifi: ti: Avoid a hundred -Wflex-array-member-not-at-end warnings 2024-03-28 15:07:37 +02:00
wlcore_i.h Highlights this time are: 2024-06-27 13:53:43 -07:00
wlcore.h wifi: wlcore: Convert to platform remove callback returning void 2023-09-18 17:31:37 +03:00