소스 검색

qcacmn: Adding memory not allocate debug print

Adding memory not allocate debug print when fail to allocate
memory for scan node

Change-Id: I77c9a3deeb9fff9fd265188060ff3aa3aa17b866
CRs-Fixed: 3611905
Guru Pratap Sharma 1 년 전
부모
커밋
d383bdce33
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 1 - 0
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -2586,6 +2586,7 @@ util_scan_gen_scan_entry(struct wlan_objmgr_pdev *pdev,
 	if (!scan_node) {
 		qdf_mem_free(scan_entry->raw_frame.ptr);
 		qdf_mem_free(scan_entry);
+		scm_err("failed to allocate memory for scan_node");
 		return QDF_STATUS_E_FAILURE;
 	}