OSDN Git Service

staging: wfx: fix RCU usage in wfx_join_finalize()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 10 Mar 2020 10:13:55 +0000 (11:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 07:14:16 +0000 (08:14 +0100)
commit046cc2effd1312a23b9e3d8363be7c68f6e91f3c
tree14a2b8c47b35cea02fea1d78f822ec192935924a
parent4bbc6a3e7ad0d0f31ae3ba9858dbca45eb7a848e
staging: wfx: fix RCU usage in wfx_join_finalize()

Access to sta->ht_cap is protected by RCU. However,
hif_set_association_mode() may sleep, so it can't be called in RCU.

This patch fix this behavior by handling sta and its RCU directly from
function hif_set_association_mode().

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Fixes: d00149011066 ("staging: wfx: fix RCU usage")
Link: https://lore.kernel.org/r/20200310101356.182818-5-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_tx_mib.h
drivers/staging/wfx/sta.c