bianbu-linux-6.6/drivers/net/wireless/ath/ath12k
Ma Ke 8175a9f662 wifi: ath12k: mhi: fix potential memory leak in ath12k_mhi_register()
[ Upstream commit 47c27aa7ded4b8ead19b3487cc42a6185b762903 ]

mhi_alloc_controller() allocates a memory space for mhi_ctrl. When some
errors occur, mhi_ctrl should be freed by mhi_free_controller() and set
ab_pci->mhi_ctrl = NULL.

We can fix it by calling mhi_free_controller() when the failure happens
and set ab_pci->mhi_ctrl = NULL in all of the places where we call
mhi_free_controller().

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230922021036.3604157-1-make_ruc2021@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:19:38 +00:00
..
ce.c wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
ce.h wifi: ath12k: Remove unused declarations 2023-08-25 10:37:51 +03:00
core.c wifi: ath12k: delete the timer rx_replenish_retry during rmmod 2023-06-09 16:33:05 +03:00
core.h wifi: ath12k: Remove unused declarations 2023-08-25 10:37:51 +03:00
dbring.c wifi: ath12k: Fix uninitilized variable clang warnings 2023-01-18 08:37:55 +02:00
dbring.h
debug.c
debug.h
dp.c wifi: ath12k: Ignore fragments from uninitialized peer in dp 2023-11-28 17:19:36 +00:00
dp.h wifi: ath12k: Fix memory leak in rx_desc and tx_desc 2023-08-23 17:17:44 +03:00
dp_mon.c wifi: ath12k: dp_mon: clean up some inconsistent indentings 2023-02-17 18:21:00 +02:00
dp_mon.h
dp_rx.c wifi: ath12k: fix possible out-of-bound read in ath12k_htt_pull_ppdu_stats() 2023-11-28 17:19:37 +00:00
dp_rx.h
dp_tx.c wifi: ath12k: fix DMA unmap warning on NULL DMA address 2023-11-20 11:58:57 +01:00
dp_tx.h
hal.c wifi: ath12k: Use msdu_end to check MCBC 2023-06-09 16:32:45 +03:00
hal.h wifi: ath12k: Use msdu_end to check MCBC 2023-06-09 16:32:45 +03:00
hal_desc.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
hal_rx.c wifi: ath12k: hal_rx: Use memset_startat() for clearing queue descriptors 2023-01-18 08:37:56 +02:00
hal_rx.h
hal_tx.c
hal_tx.h
hif.h
htc.c
htc.h
hw.c wifi: ath12k: set PERST pin no pull request for WCN7850 2023-04-26 17:30:07 +03:00
hw.h wifi: ath12k: add qmi_cnss_feature_bitmap field to hardware parameters 2023-04-26 17:30:07 +03:00
Kconfig
mac.c wifi: ath: remove unused-but-set parameter 2023-08-23 17:12:09 +03:00
mac.h wifi: ath12k: add EHT PHY modes 2023-08-03 12:11:59 +03:00
Makefile
mhi.c wifi: ath12k: mhi: fix potential memory leak in ath12k_mhi_register() 2023-11-28 17:19:38 +00:00
mhi.h
pci.c pci-v6.6-changes 2023-08-30 20:23:07 -07:00
pci.h wifi: ath12k: PCI ops for wakeup/release MHI 2023-02-22 11:50:29 +02:00
peer.c
peer.h wifi: ath12k: Ignore fragments from uninitialized peer in dp 2023-11-28 17:19:36 +00:00
qmi.c wifi: ath12k: correct the data_type from QMI_OPT_FLAG to QMI_UNSIGNED_1_BYTE for mlo_capable 2023-08-02 19:54:57 +03:00
qmi.h wifi: ath12k: Remove unused declarations 2023-08-25 10:37:51 +03:00
reg.c
reg.h
rx_desc.h wifi: ath12k: Fix a few spelling errors 2023-08-23 17:05:26 +03:00
trace.c
trace.h
wmi.c wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps() 2023-11-28 17:19:37 +00:00
wmi.h wifi: ath12k: Remove unused declarations 2023-08-25 10:37:51 +03:00