]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitb90f51e8e1f5014c01c82a7bf4c611643d0a8bcb
treea73e8bac746ca6e180f81e0d35acd15e9a00b492
parenta64b6a25dd9f984ed05fade603a00e2eae787d2f
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: a05829a7222e ("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