wifi: ath11k/ath12k: Fix MHI leak on power up failure
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v11 patch 3 repliesSuperseded
Changes in v2 from the cover letter
* fixed double unprepare by introducing new "MHI prepared" flag (Baochen),
* added a similar ath12 memory leak fix.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | wifi: ath11k: Unprepare MHI on power up failuredrivers/ drivers/ | +9 | 0 replies | |
| 2/2 | wifi: ath12k: Unprepare MHI on power up failuredrivers/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] wifi: ath11k/ath12k: Fix MHI leak on power up failure
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/[email protected]/
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(-)
Signature · 1 line
2.51.0