Skip to content

Commit 59ec8e2

Browse files
Dan CarpenterKalle Valo
authored andcommitted
ath11k: unlock on error path in ath11k_mac_op_add_interface()
These error paths need to drop the &ar->conf_mutex before returning. Fixes: 690ace2 ("ath11k: peer delete synchronization with firmware") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/X85sVGVP/0XvlrEJ@mwanda
1 parent b6041e1 commit 59ec8e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/net/wireless/ath/ath11k

‎drivers/net/wireless/ath/ath11k/mac.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,13 +4615,13 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw,
46154615
if (ret) {
46164616
ath11k_warn(ar->ab, "failed to delete peer vdev_id %d addr %pM\n",
46174617
arvif->vdev_id, vif->addr);
4618-
return ret;
4618+
goto err;
46194619
}
46204620

46214621
ret = ath11k_wait_for_peer_delete_done(ar, arvif->vdev_id,
46224622
vif->addr);
46234623
if (ret)
4624-
return ret;
4624+
goto err;
46254625

46264626
ar->num_peers--;
46274627
}

0 commit comments

Comments
 (0)