mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Fix Mem leak in scm_sort_6ghz_channel_list()
Free memory in error cases for rnr_chan_info Change-Id: Ia879dd8857a4af331bf2f41aefe0551c1f8976e7 CRs-Fixed: 2670414
This commit is contained in:
parent
01dcfedca1
commit
d34f264b07
1 changed files with 1 additions and 0 deletions
|
|
@ -964,6 +964,7 @@ static void scm_sort_6ghz_channel_list(struct wlan_objmgr_vdev *vdev,
|
|||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
if (!psoc) {
|
||||
scm_err("Psoc is NULL");
|
||||
qdf_mem_free(rnr_chan_info);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue