]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: cleanup error path of ieee80211_do_open
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 25 Mar 2026 13:48:23 +0000 (15:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 25 Mar 2026 19:50:49 +0000 (20:50 +0100)
commitad73dea1a4ac26c3ee95dd9c7a01ebe5ce299ac1
tree316b20dd780f95b016d0fdda7bf9ff695988fde0
parent506e26881751ad4c7093cb06ba46d312af13e33b
wifi: mac80211: cleanup error path of ieee80211_do_open

If we failed on drv_start, we currently cleanup AP_VLAN reference to
bss.
But this is not needed, since AP_VLAN must be tied to a pre-existing AP
interface, so open_count cannot be 0, so we will never call drv_start
for AP_VLAN interfaces.

Remove these cleanup and return immediately instead.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260325154742.3c532a9132c3.Idac5c38d5ad7ce97782a8c05ae72bb0c689c4fa9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c