summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjeet Singh <manjee@codeaurora.org>2016-08-31 19:29:50 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-14 23:36:51 -0700
commitd4c38d98ff610e0106d43ef91b1c6516b1cacd02 (patch)
tree78f3c3c11bd26d4f0c0bd478c6e39263776e7d89
parentab2cfc00251f9586b669cee1f5e3ef26e4ecf0dd (diff)
qcacld-2.0: Pass valid physical address while freeing firmware memory dump
While retrieving FW memory dump, if memory is already allocated then paddr, which holds physical address, is not updated. This leads to pass invalid physical address while freeing FW memory dump, if host fails to get FW memory dump. Hence, assign paddr with physical address, if memory is already allocated. Change-Id: I3b3071ec3d5bc04177bfbe8447dadac47e81cb40 CRs-Fixed: 1061662
-rw-r--r--CORE/HDD/src/wlan_hdd_memdump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_memdump.c b/CORE/HDD/src/wlan_hdd_memdump.c
index b8366191a976..44331071aaeb 100644
--- a/CORE/HDD/src/wlan_hdd_memdump.c
+++ b/CORE/HDD/src/wlan_hdd_memdump.c
@@ -241,6 +241,8 @@ __wlan_hdd_cfg80211_get_fw_mem_dump(struct wiphy *wiphy,
return -ENOMEM;
}
hdd_ctx->dump_loc_paddr = paddr;
+ } else {
+ paddr = hdd_ctx->dump_loc_paddr;
}
mutex_unlock(&hdd_ctx->memdump_lock);