]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: initialize return flags in HE 6 GHz operation parsing
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jun 2020 09:15:03 +0000 (11:15 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 5 Jun 2020 12:33:51 +0000 (14:33 +0200)
commitc77577227c35204c8b58f2a32a53e54b7f076bff
treefe85093546665b0d93c37a9c427da7bf65ca057c
parentbe9307bbaa7f15e5272296edaccd596e627ba70f
mac80211: initialize return flags in HE 6 GHz operation parsing

Dan points out that if ieee80211_chandef_he_6ghz_oper() succeeds,
we don't initialize 'ret'. Initialize it to 0 in this case, since
everything went fine and nothing has to be disabled.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 6d6b20bf862e ("mac80211: determine chandef from HE 6 GHz operation")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200603111500.bd2a5ff37b83.I2c3f338ce343b581db493eb9a0d988d1b626c8fb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c