OSDN Git Service

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)
commit237d29f6ce46a37908e5c1e0b29520ae8ee7c8f0
tree5d0c2bda3a94a47ec2a2dab33a1a1299328cb176
parentf2cddd5469b0e2284fa92f7013f6dc99debb3968
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