diff options
| author | Shuah Khan <skhan@linuxfoundation.org> | 2021-02-11 00:21:07 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2021-02-11 21:26:10 +0300 |
| commit | 09078368d516918666a0122f2533dc73676d3d7e (patch) | |
| tree | d3d602c8e5f7c952e7ec1092f98d81463a237ef0 /net/lapb/lapb_in.c | |
| parent | 83bae26532ca7318c1308fd80434e1e420bcf407 (diff) | |
| download | linux-09078368d516918666a0122f2533dc73676d3d7e.tar.xz | |
ath10k: hold RCU lock when calling ieee80211_find_sta_by_ifaddr()
ieee80211_find_sta_by_ifaddr() must be called under the RCU lock and
the resulting pointer is only valid under RCU lock as well.
Fix ath10k_wmi_tlv_op_pull_peer_stats_info() to hold RCU lock before it
calls ieee80211_find_sta_by_ifaddr() and release it when the resulting
pointer is no longer needed.
This problem was found while reviewing code to debug RCU warn from
ath10k_wmi_tlv_parse_peer_stats_info().
Link: https://lore.kernel.org/linux-wireless/7230c9e5-2632-b77e-c4f9-10eca557a5bb@linuxfoundation.org/
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210210212107.40373-1-skhan@linuxfoundation.org
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
