wifi: mac80211: unlock on error in ieee80211_can_powered_addr_change()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/mac80211/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/iface.c +1 -1
@@ -243,7 +243,7 @@ static int ieee80211_can_powered_addr_change(struct ieee80211_sub_if_data *sdata*/ break ;default : -return -EOPNOTSUPP ; + ret = -EOPNOTSUPP ; } unlock:
Signature · 1 line
2.35.1