ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] wifi: ath11k/ath12k: Fix MHI leak on power up failure
@ 2026-10-31 22:40 Vladimir Zapolskiy
  2026-10-31 22:40 ` [PATCH v2 1/2] wifi: ath11k: Unprepare MHI " Vladimir Zapolskiy
  2026-10-31 22:40 ` [PATCH v2 2/2] wifi: ath12k: " Vladimir Zapolskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Zapolskiy @ 2026-10-31 22:40 UTC (permalink / raw)
  To: Jeff Johnson, Baochen Qiang
  Cc: Kalle Valo, Carl Huang, Pradeep Kumar Chitrapu,
	Vasanthakumar Thiagarajan, Bhagavathi Perumal S, linux-wireless,
	ath11k, ath12k

If MHI power up fails, for instance due to a missing firmware file, the
MHI device context and the RDDM image table allocated by
mhi_prepare_for_power_up() are leaked on probe error path in both ath11k
and ath12k drivers.

The fixes keep MHI prepared on the power up error path, so a firmware
crash dump collection in the reset work can still read the RDDM image,
and release it on driver unregistration or before MHI is prepared again.

Changes from v1 to v2:
* fixed double unprepare by introducing new "MHI prepared" flag (Baochen),
* added a similar ath12 memory leak fix.

Link to v1:
* https://lore.kernel.org/linux-wireless/20261028104336.1686334-1-vz@kernel.org/

Vladimir Zapolskiy (2):
  wifi: ath11k: Unprepare MHI on power up failure
  wifi: ath12k: Unprepare MHI on power up failure

 drivers/net/wireless/ath/ath11k/mhi.c |  9 ++++++++-
 drivers/net/wireless/ath/ath11k/pci.h |  1 +
 drivers/net/wireless/ath/ath12k/mhi.c | 14 ++++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-31 22:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-31 22:40 [PATCH v2 0/2] wifi: ath11k/ath12k: Fix MHI leak on power up failure Vladimir Zapolskiy
2026-10-31 22:40 ` [PATCH v2 1/2] wifi: ath11k: Unprepare MHI " Vladimir Zapolskiy
2026-10-31 22:40 ` [PATCH v2 2/2] wifi: ath12k: " Vladimir Zapolskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox