Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 193799c7 authored by Shuah Khan's avatar Shuah Khan Committed by Greg Kroah-Hartman
Browse files

ath10k: Fix ath10k_wmi_tlv_op_pull_peer_stats_info() unlock without lock



[ Upstream commit eaaf52e4b866f265eb791897d622961293fd48c1 ]

ath10k_wmi_tlv_op_pull_peer_stats_info() could try to unlock RCU lock
winthout locking it first when peer reason doesn't match the valid
cases for this function.

Add a default case to return without unlocking.

Fixes: 09078368d516 ("ath10k: hold RCU lock when calling ieee80211_find_sta_by_ifaddr()")
Reported-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210406230228.31301-1-skhan@linuxfoundation.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f1526a23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment