wifi: mac80211: unlock on error in ieee80211_can_powered_addr_change()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 12 Sep 2022 15:07:16 +0000 (18:07 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 12:41:14 +0000 (14:41 +0200)
commitceb3d688f92231e9d9e663c56a1c8bee90140bad
tree4bc55730a80fc87340fd1fbdeea50391460b48cc
parent092197f1f47f8359b46ea62445d87561949b577d
wifi: mac80211: unlock on error in ieee80211_can_powered_addr_change()

Unlock before returning -EOPNOTSUPP.

Fixes: 3c06e91b40db ("wifi: mac80211: Support POWERED_ADDR_CHANGE feature")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c