Re: [PATCH][next] mac80211: minstrel_ht: fix infinite loop because supported is not being shifted

From: Felix Fietkau
Date: Fri Aug 23 2019 - 07:07:44 EST


On 2019-08-22 14:20, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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: 48cb39522a9d ("mac80211: minstrel_ht: improve rate probing for devices with static fallback")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Acked-by: Felix Fietkau <nbd@xxxxxxxx>

Thanks,

- Felix