]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Aug 2020 09:03:14 +0000 (11:03 +0200)
commit32fc476fb0ac15bf5e924d09507b31fc8382a109
tree5bf9684c9ad7d5afc7ab1b889db81f269c35d76a
parent7a4ed7fa69f667e12e6151109f10c18a8d839be3
mac80211: fix misplaced while instead of if

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: 80b194fc4454 ("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>
net/mac80211/sta_info.c