]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix misplaced while instead of if
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Aug 2020 09:02:10 +0000 (11:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:26 +0000 (13:07 +0200)
commit7b897c98b23ebf3258492c6f61a4ea22bd5939f6
tree988eea2ed0a4cac387178e34fa5471daef935ac8
parentd9eb83144bb60c8d6087d4a51186659399e99a72
mac80211: fix misplaced while instead of if

commit 5981fe5b0529ba25d95f37d7faa434183ad618c5 upstream.

This never was intended to be a 'while' loop, it should've
just been an 'if' instead of 'while'. Fix this.

I noticed this while applying another patch from Ben that
intended to fix a busy loop at this spot.

Cc: stable@vger.kernel.org
Fixes: b16798f5b907 ("mac80211: mark station unauthorized before key removal")
Reported-by: Ben Greear <greearb@candelatech.com>
Link: https://lore.kernel.org/r/20200803110209.253009ae41ff.I3522aad099392b31d5cf2dcca34cbac7e5832dde@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c