]> 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)
commit27eae88e042f1d90722c7ed7742949c6ba98e959
treea73e8bac746ca6e180f81e0d35acd15e9a00b492
parent20e466403f7fc90932bdeab067e11c5b8c6d0831
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: 03d71e9f6564 ("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