]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: wwan: iosm: Fix memory leak in ipc_mux_deinit()
authorZilin Guan <zilin@seu.edu.cn>
Tue, 30 Dec 2025 07:18:53 +0000 (07:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:29:58 +0000 (16:29 +0100)
commitdc6f73f73ce8837bc826556723a5d79392309542
tree0805976553c23bbf5539d6f4a8ab909394bc8f60
parent81e7205b82a7fdcd4f682fc7ea1fb1e1b5065504
net: wwan: iosm: Fix memory leak in ipc_mux_deinit()

[ Upstream commit 92e6e0a87f6860a4710f9494f8c704d498ae60f8 ]

Commit 1f52d7b62285 ("net: wwan: iosm: Enable M.2 7360 WWAN card support")
allocated memory for pp_qlt in ipc_mux_init() but did not free it in
ipc_mux_deinit(). This results in a memory leak when the driver is
unloaded.

Free the allocated memory in ipc_mux_deinit() to fix the leak.

Fixes: 1f52d7b62285 ("net: wwan: iosm: Enable M.2 7360 WWAN card support")
Co-developed-by: Jianhao Xu <jianhao.xu@seu.edu.cn>
Signed-off-by: Jianhao Xu <jianhao.xu@seu.edu.cn>
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20251230071853.1062223-1-zilin@seu.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wwan/iosm/iosm_ipc_mux.c