mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Do not allocate 0 byte memory in DFS component
In DFS component 0 byte memory is allocated when dfs_nol_count is 0. We see a print 'allocating 0 bytes at this location' during wifi unload. Change-Id: I5d6ad36875d634ee5ae6a138656bdb3f538bcdbe CRs-Fixed: 2316513
This commit is contained in:
parent
1bbf4f0482
commit
cf7d57c5f6
1 changed files with 5 additions and 0 deletions
|
|
@ -475,6 +475,11 @@ void dfs_nol_update(struct wlan_dfs *dfs)
|
|||
struct dfsreq_nolelem *dfs_nol;
|
||||
int nlen;
|
||||
|
||||
if (!dfs->dfs_nol_count) {
|
||||
dfs_debug(dfs, WLAN_DEBUG_DFS_NOL, "dfs_nol_count is zero");
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate enough entries to store the NOL. At least on Linux
|
||||
* (don't ask why), if you allocate a 0 entry array, the
|
||||
|
|
|
|||
Loading…
Reference in a new issue