mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-04-01 15:32:00 +00:00
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>
This commit is contained in:
parent
2d22c7dded
commit
1221c25a33
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user