mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
qcacmn: Free raw frame pointer in failure path
Free raw frame pointer if scan node allocation fails. Change-Id: If080f33cd85eb043c60c90c4170ae2ca4a161e0c CRs-Fixed: 2194056
This commit is contained in:
parent
710c252550
commit
52402555cd
1 changed files with 1 additions and 0 deletions
|
|
@ -957,6 +957,7 @@ util_scan_unpack_beacon_frame(uint8_t *frame,
|
|||
|
||||
scan_node = qdf_mem_malloc(sizeof(*scan_node));
|
||||
if (!scan_node) {
|
||||
qdf_mem_free(scan_entry->raw_frame.ptr);
|
||||
qdf_mem_free(scan_entry);
|
||||
qdf_mem_free(scan_list);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue