summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArif Hussain <arifhussain@codeaurora.org>2016-10-25 14:58:06 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-29 17:22:54 -0700
commit941630a0d10e4c52d56f6aa63be92d13d441fdb9 (patch)
treef36dc91823930da46ea76dfaa2c5b43cf03c26d3
parentcf6b960cb0fa6604f18a57f8a7e29f6aeb8d9542 (diff)
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)
-rw-r--r--core/wma/src/wma_features.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 52b330d7938e..a2cef423385b 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -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;