diff options
| author | Manjeet Singh <manjee@codeaurora.org> | 2016-11-09 16:08:41 +0530 |
|---|---|---|
| committer | Manjeet Singh <manjee@codeaurora.org> | 2016-11-14 15:24:59 +0530 |
| commit | ce88168e5dc382307040efd17266c375ba8e970d (patch) | |
| tree | cfa3afd51319823c3f093aac3f113a4e42685ff9 | |
| parent | ae6a70e17c08250a73388530d534666ca4e289a2 (diff) | |
qcacld-3.0: Pass valid physical address while freeing firmware memory dump
qcacld-2.0 to qcacld-3.0 propagation
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.c | 2 |
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 195d066018b2..b8765153d373 100644 --- a/core/hdd/src/wlan_hdd_memdump.c +++ b/core/hdd/src/wlan_hdd_memdump.c @@ -242,6 +242,8 @@ static int __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); |
