From 08aee90efff2a0f4ac560bfe63df8a7ab3fc51fa Mon Sep 17 00:00:00 2001 From: Manjeet Singh Date: Wed, 31 Aug 2016 19:29:50 +0530 Subject: 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 --- CORE/HDD/src/wlan_hdd_memdump.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3