diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-08 12:34:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-11-11 14:47:45 -0500 |
commit | 1221c25a33c8b08a65faa2b4adeb9216ea93a5e7 (patch) | |
tree | dd83efb06761a6c493c73079cf4378a40fda8c79 | |
parent | 2d22c7dded7dcf6feaede2d6f476fd991426980a (diff) |
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.c | 3 |
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, | |||
1327 | if (skb->len > BEACON_TEMPLATE_SIZE) { | 1327 | if (skb->len > BEACON_TEMPLATE_SIZE) { |
1328 | wcn36xx_warn("probe response template is too big: %d\n", | 1328 | wcn36xx_warn("probe response template is too big: %d\n", |
1329 | skb->len); | 1329 | skb->len); |
1330 | return -E2BIG; | 1330 | ret = -E2BIG; |
1331 | goto out; | ||
1331 | } | 1332 | } |
1332 | 1333 | ||
1333 | msg.probe_resp_template_len = skb->len; | 1334 | msg.probe_resp_template_len = skb->len; |