Skip to content

Commit 8eb12fa

Browse files
Dan Carpentergregkh
authored andcommitted
ath11k: unlock on error path in ath11k_mac_op_add_interface()
commit 59ec8e2 upstream. 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 Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9706c53 commit 8eb12fa

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
@@ -4603,13 +4603,13 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw,
46034603
if (ret) {
46044604
ath11k_warn(ar->ab, "failed to delete peer vdev_id %d addr %pM\n",
46054605
arvif->vdev_id, vif->addr);
4606-
return ret;
4606+
goto err;
46074607
}
46084608

46094609
ret = ath11k_wait_for_peer_delete_done(ar, arvif->vdev_id,
46104610
vif->addr);
46114611
if (ret)
4612-
return ret;
4612+
goto err;
46134613

46144614
ar->num_peers--;
46154615
}

0 commit comments

Comments
 (0)