]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: nl80211: set BSS to NULL if IS_ERR()
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Jul 2022 13:03:51 +0000 (15:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:19 +0000 (11:43 +0200)
commitd3a6381c71ce29509df01a0540ea3d84dff107bb
treeffb9a8f7532e80881f8be7f89ed5e7ee42e9a6f0
parent209933bb632ee31fb84f41ffd7e26cfdd6a13894
wifi: nl80211: set BSS to NULL if IS_ERR()

If the BSS lookup returned an error, set it to NULL so we
don't try to free it.

Fixes: 96ed900d2763 ("wifi: nl80211: support MLO in auth/assoc")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c