mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 05:01:48 +00:00
wcn36xx: missing unlocks on error paths
There are several places which are missing unlocks. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
1221c25a33
commit
95b48c2cda
@ -1286,7 +1286,8 @@ int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct ieee80211_vif *vif,
|
|||||||
} else {
|
} else {
|
||||||
wcn36xx_err("Beacon is to big: beacon size=%d\n",
|
wcn36xx_err("Beacon is to big: beacon size=%d\n",
|
||||||
msg_body.beacon_length);
|
msg_body.beacon_length);
|
||||||
return -ENOMEM;
|
ret = -ENOMEM;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
memcpy(msg_body.bssid, vif->addr, ETH_ALEN);
|
memcpy(msg_body.bssid, vif->addr, ETH_ALEN);
|
||||||
|
|
||||||
@ -1607,7 +1608,8 @@ int wcn36xx_smd_keep_alive_req(struct wcn36xx *wcn,
|
|||||||
/* TODO: it also support ARP response type */
|
/* TODO: it also support ARP response type */
|
||||||
} else {
|
} else {
|
||||||
wcn36xx_warn("unknow keep alive packet type %d\n", packet_type);
|
wcn36xx_warn("unknow keep alive packet type %d\n", packet_type);
|
||||||
return -EINVAL;
|
ret = -EINVAL;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PREPARE_HAL_BUF(wcn->hal_buf, msg_body);
|
PREPARE_HAL_BUF(wcn->hal_buf, msg_body);
|
||||||
|
Loading…
Reference in New Issue
Block a user