]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: fix infinite loop because supported is not being shifted
authorColin Ian King <colin.king@canonical.com>
Thu, 22 Aug 2019 12:20:34 +0000 (13:20 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 22 Aug 2019 19:58:18 +0000 (21:58 +0200)
commit582ca4d3e41c472109fe14be947bf5b5c4c02e0f
tree1ddae8810ccb994d69d581c6fb9e6f456a9b03c0
parent022c7ec47af787aeb3e9cb78c03825fa74a2d2c6
mac80211: minstrel_ht: fix infinite loop because supported is not being shifted

Currently the for-loop will spin forever if variable supported is
non-zero because supported is never changed.  Fix this by adding in
the missing right shift of supported.

Addresses-Coverity: ("Infinite loop")
Fixes: 58f7423bf17f ("mac80211: minstrel_ht: improve rate probing for devices with static fallback")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190822122034.28664-1-colin.king@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c