summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wcn36xx/smd.c
diff options
context:
space:
mode:
authorWei Yongjun2013-11-08 18:34:37 +0100
committerJohn W. Linville2013-11-11 20:47:45 +0100
commit1221c25a33c8b08a65faa2b4adeb9216ea93a5e7 (patch)
treedd83efb06761a6c493c73079cf4378a40fda8c79 /drivers/net/wireless/ath/wcn36xx/smd.c
parentath9k: Use correct PCIE initvals for AR9485 (diff)
downloadkernel-qcow2-linux-1221c25a33c8b08a65faa2b4adeb9216ea93a5e7.tar.gz
kernel-qcow2-linux-1221c25a33c8b08a65faa2b4adeb9216ea93a5e7.tar.xz
kernel-qcow2-linux-1221c25a33c8b08a65faa2b4adeb9216ea93a5e7.zip
wcn36xx: Add missing unlock before return
Add the missing unlock before return from function wcn36xx_smd_update_proberesp_tmpl() in the error handling case. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wcn36xx/smd.c')
-rw-r--r--drivers/net/wireless/ath/wcn36xx/smd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
index f8c3a10510c2..04df70beba42 100644
--- a/drivers/net/wireless/ath/wcn36xx/smd.c
+++ b/drivers/net/wireless/ath/wcn36xx/smd.c
@@ -1327,7 +1327,8 @@ int wcn36xx_smd_update_proberesp_tmpl(struct wcn36xx *wcn,
if (skb->len > BEACON_TEMPLATE_SIZE) {
wcn36xx_warn("probe response template is too big: %d\n",
skb->len);
- return -E2BIG;
+ ret = -E2BIG;
+ goto out;
}
msg.probe_resp_template_len = skb->len;