Search Linux Wireless

Re: [PATCH 1/3] mac80211: Minor optimization in minstrel_ht tx status path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 16, 2011 at 4:39 PM, Stanislaw Gruszka <sgruszka@xxxxxxxxxx> wrote:
> On Mon, Nov 14, 2011 at 03:28:18PM +0100, Helmut Schaa wrote:
>> @@ -421,8 +421,8 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband,
>>               mi->sample_packets += info->status.ampdu_len;
>>
>>       for (i = 0; !last; i++) {
>> -             last = (i == IEEE80211_TX_MAX_RATES - 1) ||
>> -                    !minstrel_ht_txstat_valid(&ar[i + 1]);
>> +             last = !minstrel_ht_txstat_valid(&ar[i + 1]) ||
>> +                    (i == IEEE80211_TX_MAX_RATES - 1);
> This make possible that we read outsite from ar[] border. Normally
> that should not couse any troubles, but I think it could confuse
> something like kmemcheck. Perhaps whould be better to just add
> unlikely(i == IEEE80211_TX_MAX_RATES - 1) ?

Indeed, you're right. John, please drop this patch. The other two are
still fine.

Thanks,
Helmut
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux