wext: call cfg80211_change_iface() with wiphy lock held
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jan 2021 17:35:26 +0000 (18:35 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jan 2021 18:10:48 +0000 (19:10 +0100)
commitbae173563cbf469533d0c38534b874d4a2df0c85
tree11b88effdc0002ed21a09b2e24f2164381b5a335
parent0391a45c800780f0aa33984542710451acd71b90
wext: call cfg80211_change_iface() with wiphy lock held

This is needed now that all the driver callbacks are protected by
the wiphy lock rather than (just) the RTNL.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Reported-by: syzbot+d2d412349f88521938aa@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20210128183454.e81bc6789b4b.I5deb8b6bfdc8b4ea7696cb2447ee6c58c7ce9a4e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c