]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: do not use bus mutex for events processing
authorIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Mon, 22 Jan 2018 12:46:33 +0000 (15:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 16:00:55 +0000 (18:00 +0200)
commitad483a691ffa2c6aa792ca6aa8258c611ba15b76
tree5d0c2bda3a94a47ec2a2dab33a1a1299328cb176
parentf3553c951ce0a6b067b7bf255ceb23caf41d6181
qtnfmac: do not use bus mutex for events processing

Events processing requires locking of bus mutex, which is also used by
cfg80211 layer before calling several of cfg80211 callbacks. Since all
cfg80211 callbacks in qtnfmac driver also lock bus mutex, this
potentially may lead to a deadlock.

Do not use bus lock for event processing. Use RTNL lock instead to
serialize events and commands processing threads.

Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/event.c