diff options
| author | Manjeet Singh <manjee@codeaurora.org> | 2016-08-31 19:29:50 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-09-02 15:26:47 +0530 |
| commit | 08aee90efff2a0f4ac560bfe63df8a7ab3fc51fa (patch) | |
| tree | 3ea3d6f8c5991baf6853ea4a4c52e1d23e44d14d | |
| parent | 284826b286a8a58f7ddfadb513002cf911c07c5e (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.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 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); |
