]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: ocb: don't leave if not joined
authorJohannes Berg <johannes.berg@intel.com>
Tue, 15 Aug 2023 16:32:03 +0000 (18:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 09:11:03 +0000 (11:11 +0200)
commitd7b0fe3487d203c04ee1bda91a63bd4dd398c350
treee209b9feb31d4890172d35f250276560d5677661
parent676a423410131d111a264d29aecbe6aadd57fb22
wifi: cfg80211: ocb: don't leave if not joined

[ Upstream commit abc76cf552e13cfa88a204b362a86b0e08e95228 ]

If there's no OCB state, don't ask the driver/mac80211 to
leave, since that's just confusing. Since set/clear the
chandef state, that's a simple check.

Reported-by: syzbot+09d1cd2f71e6dd3bfd2c@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/ocb.c