wifi: rtw89: fix unsuccessful interface_add flow
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 2 Dec 2022 06:15:26 +0000 (14:15 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 8 Dec 2022 14:47:58 +0000 (16:47 +0200)
commit8fc5d4338620b81b1b265c725b38aced8acf8d72
tree5f20ba3510b304af03b26ebf8b535d52a6ac1665
parentd592b9f742643f07db53ac34baf6bbd3ce9478dc
wifi: rtw89: fix unsuccessful interface_add flow

Remove according vifs from list if we couldn't set this interface up.
Otherwise the rtwvif_list could contain unreferenced objects.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221202061527.505668-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac80211.c