mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: unlock chan_lock before return in wma_dfs_indicate_radar
unlock chan_lock before return in wma_dfs_indicate_radar function in failure case. Change-Id: I389d6479d2cd048b636230b38f135471acd38d00 CRs-Fixed: 1082162 (cherry picked from commit 41e358802ddc6722e4f1bf37b8c68ceab5e5fee5)
This commit is contained in:
parent
cf6b960cb0
commit
941630a0d1
1 changed files with 1 additions and 0 deletions
|
|
@ -7546,6 +7546,7 @@ int wma_dfs_indicate_radar(struct ieee80211com *ic,
|
|||
qdf_mem_malloc(sizeof(struct wma_dfs_radar_indication));
|
||||
if (radar_event == NULL) {
|
||||
WMA_LOGE(FL("Failed to allocate memory for radar_event"));
|
||||
qdf_spin_unlock_bh(&ic->chan_lock);
|
||||
return -ENOMEM;
|
||||
}
|
||||
wma->dfs_ic->last_radar_found_chan = ichan->ic_ieee;
|
||||
|
|
|
|||
Loading…
Reference in a new issue