Skip to content

Commit 95b48c2

Browse files
Dan Carpenterlinvjw
authored andcommitted
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>
1 parent 1221c25 commit 95b48c2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • drivers/net/wireless/ath/wcn36xx

‎drivers/net/wireless/ath/wcn36xx/smd.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,8 @@ int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct ieee80211_vif *vif,
12861286
} else {
12871287
wcn36xx_err("Beacon is to big: beacon size=%d\n",
12881288
msg_body.beacon_length);
1289-
return -ENOMEM;
1289+
ret = -ENOMEM;
1290+
goto out;
12901291
}
12911292
memcpy(msg_body.bssid, vif->addr, ETH_ALEN);
12921293

@@ -1607,7 +1608,8 @@ int wcn36xx_smd_keep_alive_req(struct wcn36xx *wcn,
16071608
/* TODO: it also support ARP response type */
16081609
} else {
16091610
wcn36xx_warn("unknow keep alive packet type %d\n", packet_type);
1610-
return -EINVAL;
1611+
ret = -EINVAL;
1612+
goto out;
16111613
}
16121614

16131615
PREPARE_HAL_BUF(wcn->hal_buf, msg_body);

0 commit comments

Comments
 (0)