mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 13:09:04 -04:00
qcacmn: Free dfs_b5radars when it is not NULL
Before allocating dfs_b5radars, we need free the old one. Free dfs_b5radars when it is not NULL. Change-Id: I4df2698b2c630f0259df32eb5fface1b0750d86d CRs-Fixed: 2166047
This commit is contained in:
parent
87d4967274
commit
0dca5c06e2
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, 2016-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013, 2016-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2002-2010, Atheros Communications Inc.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
|
|
@ -337,7 +337,7 @@ int dfs_init_radar_filters(struct wlan_dfs *dfs,
|
|||
dfs_print_filters(dfs);
|
||||
|
||||
dfs->dfs_rinfo.rn_numbin5radars = numb5radars;
|
||||
if (!(dfs->dfs_b5radars))
|
||||
if (dfs->dfs_b5radars)
|
||||
qdf_mem_free(dfs->dfs_b5radars);
|
||||
|
||||
dfs->dfs_b5radars = (struct dfs_bin5radars *)qdf_mem_malloc(
|
||||
|
|
|
|||
Loading…
Reference in a new issue