Skip to content

fix leaks in some WMI error path

Nicolas Escande ath11k linux-wireless 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Added patch to also fix ath11k_tm_cmd_wmi_ftm() as per Rameshkumar's remark

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3wifi: ath11k: fix error path leaks in some WMI WOW callsdrivers/net/wireless/ath/ath11k/wmi.c+16 -30 replies
2/3wifi: ath11k: fix error path leaks in some WMI callsdrivers/net/wireless/ath/ath11k/wmi.c+96 -160 replies
3/3wifi: ath11k: fix error path leak in ath11k_tm_cmd_wmi_ftm()drivers/net/wireless/ath/ath11k/testmode.c+1 -01 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRameshkumar SundaramBaochen Qiang
SeriesR-b R-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] fix leaks in some WMI error path

So this is similar work to what has been posted here [0] for ath12k.

When we use the pattern 'return ath11k_wmi_cmd_send(...)' without explicitly checking the return value we fail to free the allocated skb.

This has been split into 2 patches per Jeff's guidance to hopefully ease the backporting process.

[0] https://lore.kernel.org/linux-wireless/[email protected]/

---
Changes from v1:
- Added patch to also fix ath11k_tm_cmd_wmi_ftm() as per Rameshkumar's remark

Nicolas Escande (3):
wifi: ath11k: fix leak in error path of some WOW related WMI commands
wifi: ath11k: fix error path leaks in some WMI calls
wifi: ath11k: fix error path leak in ath11k_tm_cmd_wmi_ftm()

 drivers/net/wireless/ath/ath11k/testmode.c |   1 +
 drivers/net/wireless/ath/ath11k/wmi.c      | 131 ++++++++++++++++++---
 2 files changed, 113 insertions(+), 19 deletions(-)
Signature · 1 line
2.54.0