wifi: mac80211: unlock on error in ieee80211_can_powered_addr_change()

Unlock before returning -EOPNOTSUPP.

Fixes: 3c06e91b40 ("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>
This commit is contained in:
Dan Carpenter 2022-09-12 18:07:16 +03:00 committed by Johannes Berg
parent 092197f1f4
commit ceb3d688f9
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ static int ieee80211_can_powered_addr_change(struct ieee80211_sub_if_data *sdata
*/
break;
default:
return -EOPNOTSUPP;
ret = -EOPNOTSUPP;
}
unlock: