]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: fix monitor netdev register/unregister
authorJohannes Berg <johannes.berg@intel.com>
Mon, 26 Apr 2021 19:28:02 +0000 (21:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 31 May 2021 19:27:15 +0000 (21:27 +0200)
commit040f01023662fc0cb2b60921a0eaea7e965a4f82
treea73e8bac746ca6e180f81e0d35acd15e9a00b492
parented9d549a9d24b6fe2a4757c001adb67d39dc6c22
staging: rtl8723bs: fix monitor netdev register/unregister

Due to the locking changes and callbacks happening inside
cfg80211, we need to use cfg80211 versions of the register
and unregister functions if called within cfg80211 methods,
otherwise deadlocks occur.

Fixes: 31793ce79203 ("cfg80211: avoid holding the RTNL when calling the driver")
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210426212801.3d902cc9e6f4.Ie0b1e0c545920c61400a4b7d0f384ea61feb645a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c