projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092197f
)
wifi: mac80211: unlock on error in ieee80211_can_powered_addr_change()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 12 Sep 2022 15:07:16 +0000
(18:07 +0300)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 7 Oct 2022 12:41:14 +0000
(14:41 +0200)
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
patch
|
blob
|
history
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index 572254366a0f80049b63115f7924b26f15a3bb32..b15afa77b87c076c14d1114ea39fb6749c8f3493 100644
(file)
--- a/
net/mac80211/iface.c
+++ b/
net/mac80211/iface.c
@@
-243,7
+243,7
@@
static int ieee80211_can_powered_addr_change(struct ieee80211_sub_if_data *sdata
*/
break;
default:
- ret
urn
-EOPNOTSUPP;
+ ret
=
-EOPNOTSUPP;
}
unlock: