Skip to content

wifi: ath11k: fix ioremap() leak

Jeff Johnson ath11k linux-wireless lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20240427-ce-unmap-3030e38ba1bb

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: ath11k: refactor CE remap & unmapdrivers/net/wireless/ath/ath11k/ahb.c+34 -181 reply
2/2wifi: ath11k: unmap the CE in ath11k_ahb_probe() error pathdrivers/net/wireless/ath/ath11k/ahb.c+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] wifi: ath11k: fix ioremap() leak

smatch flagged the following issue:

drivers/net/wireless/ath/ath11k/ahb.c:1218 ath11k_ahb_probe() warn: 'ab->mem_ce' from ioremap() not released on lines: 1218.

Fix it by refactoring the ioremap and iounmap code and then calling the unmap in the ath11k_ahb_probe() error path.

---
Jeff Johnson (2):
wifi: ath11k: refactor CE remap & unmap
wifi: ath11k: unmap the CE in ath11k_ahb_probe() error path

 drivers/net/wireless/ath/ath11k/ahb.c | 57 +++++++++++++++++++++++------------
 1 file changed, 38 insertions(+), 19 deletions(-)

---
base-commit: bf99bc7423e18aa3475ef00a7a6fb773c31ce6df
change-id: 20240427-ce-unmap-3030e38ba1bb