wcn36xx: Add missing unlock before return
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 8 Nov 2013 17:34:37 +0000 (17:34 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Nov 2013 19:47:45 +0000 (14:47 -0500)
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>
drivers/net/wireless/ath/wcn36xx/smd.c

index f8c3a10510c22b01eb06d9b51310562cb0c8b7dd..04df70beba426df6a24f83535fbc2867ab569e94 100644 (file)
@@ -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;