mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacmn: Fix invalid memory free
Problem: Memory is allocated for avoid_freq_ind in reg_call_chan_change_cbks function and freed when avoid_freq_ind is NULL. Solution: Memory is freed when avoid_freq_ind is not NULL. Change-Id: I263441c5b05755054ee581b20af191d93c3dea5e CRs-Fixed: 2124580
This commit is contained in:
parent
c6d785d033
commit
70f77c51bd
1 changed files with 1 additions and 1 deletions
|
|
@ -2210,7 +2210,7 @@ skip_ch_avoid_ind:
|
|||
cbk_list[ctr].arg);
|
||||
}
|
||||
qdf_mem_free(cur_chan_list);
|
||||
if (!avoid_freq_ind)
|
||||
if (avoid_freq_ind)
|
||||
qdf_mem_free(avoid_freq_ind);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue