summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-08 17:34:37 +0000
committerJohn W. Linville <linville@tuxdriver.com>2013-11-11 14:47:45 -0500
commit1221c25a33c8b08a65faa2b4adeb9216ea93a5e7 (patch)
treedd83efb06761a6c493c73079cf4378a40fda8c79
parent2d22c7dded7dcf6feaede2d6f476fd991426980a (diff)
downloadop-kernel-dev-1221c25a33c8b08a65faa2b4adeb9216ea93a5e7.zip
op-kernel-dev-1221c25a33c8b08a65faa2b4adeb9216ea93a5e7.tar.gz
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>
-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 f8c3a10..04df70b 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;
OpenPOWER on IntegriCloud