wifi: ath10k: Check return value of ath10k_get_arvif() in ath10k_wmi_event_tdls_peer()
authorPeter Kosyh <pkosyh@yandex.ru>
Mon, 3 Oct 2022 09:12:17 +0000 (12:12 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 13 Oct 2022 06:20:45 +0000 (09:20 +0300)
commit473118917cc33b98510880458c724bd833653db6
tree7151a21412019e065d0e6da5295b06a975f1c1a9
parent3811fa1f231f1a3e29759efef4992116604aab8b
wifi: ath10k: Check return value of ath10k_get_arvif() in ath10k_wmi_event_tdls_peer()

Return value of a function ath10k_get_arvif() is dereferenced without
checking for null in ath10k_wmi_event_tdls_peer(), but it is usually checked
for this function.

Make ath10k_wmi_event_tdls_peer() do check retval of ath10k_get_arvif().

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Peter Kosyh <pkosyh@yandex.ru>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221003091217.322598-1-pkosyh@yandex.ru
drivers/net/wireless/ath/ath10k/wmi-tlv.c