Search Linux Wireless

Re: [PATCH 1/3] mt76 mt7915: take RCU read lock when calling ieee80211_bss_get_elem()

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

 



On Wed, 2021-07-14 at 13:36 +0800, Ryder Lee wrote:
> 
>  	if (!elem || elem->datalen < 10 ||
>  	    !(elem->data[10] &
>  	      WLAN_EXT_CAPA10_OBSS_NARROW_BW_RU_TOLERANCE_SUPPORT))
>  		data->tolerated = false;

Unrelated to this patch, but that looks like an off-by-one?

If datalen == 10, then you can only access data[0] through data[9], not
data[10]?

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux