linux/drivers/net/ipa
Haoxiang Li 96ca1e658a net: ipa: fix SMEM state handle leaks in SMP2P init
ipa_smp2p_init() acquires two Qualcomm SMEM state handles with
qcom_smem_state_get(). However, neither the init error paths
nor ipa_smp2p_exit() release them.

Release both handles with qcom_smem_state_put() in the init
error paths and in ipa_smp2p_exit().

Fixes: 530f9216a9 ("soc: qcom: ipa: AP/modem communications")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Link: https://patch.msgid.link/20260624065955.2822765-1-haoxiang_li2024@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-06-26 18:40:04 -07:00
..
data net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
reg net: ipa: fix event ring index not programmed for IPA v5.0+ 2026-04-09 09:47:31 +02:00
gsi_private.h net: ipa: add some needed struct declarations 2024-04-18 13:01:05 +02:00
gsi_reg.c net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
gsi_reg.h
gsi_trans.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
gsi_trans.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
gsi.c net: ipa: Fix decoding EV_PER_EE for IPA v5.0+ 2026-04-12 13:49:33 -07:00
gsi.h net: ipa: allocate dummy net_device dynamically 2024-04-24 12:00:16 +01:00
ipa_cmd.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_cmd.h net: ipa: fix two minor ipa_cmd problems 2024-04-23 13:08:08 +02:00
ipa_data.h net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
ipa_endpoint.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_endpoint.h net: ipa: fix two bogus argument names 2024-04-23 13:08:08 +02:00
ipa_gsi.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_gsi.h
ipa_interrupt.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ipa_interrupt.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-04-14 12:04:00 -07:00
ipa_mem.c net: ipa: Grab IMEM slice base/size from DTS 2026-03-03 17:22:14 -08:00
ipa_mem.h
ipa_modem.c net: ipa: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-29 18:55:56 -07:00
ipa_modem.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_power.c net: ipa: make use of dev_err_cast_probe() 2024-08-29 11:41:05 -07:00
ipa_power.h net: ipa: call device_init_wakeup() earlier 2024-04-23 13:08:08 +02:00
ipa_qmi_msg.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi_msg.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi.c net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_qmi.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
ipa_reg.c net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
ipa_reg.h net: ipa: more include file cleanup 2024-04-18 13:01:05 +02:00
ipa_resource.c net: ipa: remove unneeded standard includes 2024-04-18 13:01:05 +02:00
ipa_resource.h
ipa_smp2p.c net: ipa: fix SMEM state handle leaks in SMP2P init 2026-06-26 18:40:04 -07:00
ipa_smp2p.h
ipa_sysfs.c net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
ipa_sysfs.h net: ipa: eliminate unneeded struct declarations 2024-04-18 13:01:05 +02:00
ipa_table.c net: ipa: make ipa_table_hash_support() a real function 2024-04-23 13:08:08 +02:00
ipa_table.h net: ipa: make ipa_table_hash_support() a real function 2024-04-23 13:08:08 +02:00
ipa_uc.c net: ipa: Remove redundant pm_runtime_mark_last_busy() calls 2025-10-29 18:55:56 -07:00
ipa_uc.h net: ipa: eliminate unneeded struct declarations 2024-04-18 13:01:05 +02:00
ipa_version.h net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
ipa.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00
Kconfig ipa: fix compile-testing with qcom-mdt=m 2025-08-04 17:15:15 -07:00
Makefile net: ipa: add IPA v5.2 configuration data 2026-04-12 15:26:13 -07:00
reg.h net: ipa: sort all includes 2024-04-18 13:01:05 +02:00