Browse Source

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
Manjeet Singh 8 years ago
parent
commit
0e617d64df
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_memdump.c

+ 2 - 0
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);