]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: iosm: fix memory leak in ipc_mux_init()
authorZhengchao Shao <shaozhengchao@huawei.com>
Sat, 3 Dec 2022 02:09:03 +0000 (10:09 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Dec 2022 10:39:35 +0000 (11:39 +0100)
commit57b26bfcc9c880f76f2a69e0bad9622b96613ec7
tree34c37d5d4d1112449649895e7f8b9c6ea3642468
parentd9dc9dc9e6bed639c9c79b87c960aaead71d0ad4
net: wwan: iosm: fix memory leak in ipc_mux_init()

When failed to alloc ipc_mux->ul_adb.pp_qlt in ipc_mux_init(), ipc_mux
is not released.

Fixes: a30869e16864 ("net: wwan: iosm: Enable M.2 7360 WWAN card support")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com>
Link: https://lore.kernel.org/r/20221203020903.383235-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/wwan/iosm/iosm_ipc_mux.c