ath11k: unlock on error path in ath11k_mac_op_add_interface()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Dec 2020 07:52:57 +0000 (09:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:55 +0000 (09:44 +0200)
commit8eb12fa96bc519607929d4681aa7ee9601f76feb
treed7b89369ff6efbde11cf60ccdbc31a557c57dcc5
parent9706c53433467ba3bc664d78b1e820e411cf59c7
ath11k: unlock on error path in ath11k_mac_op_add_interface()

commit 59ec8e2fa5aaed6afd18d5362dc131aab92406e7 upstream.

These error paths need to drop the &ar->conf_mutex before returning.

Fixes: 690ace20ff79 ("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>
drivers/net/wireless/ath/ath11k/mac.c