Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1221c25a authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2d22c7dd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;