소스 검색

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 년 전
부모
커밋
0e617d64df
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);