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

Johannes Berg johannes at sipsolutions.net
Wed Jul 14 00:31:37 PDT 2021


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




More information about the Linux-mediatek mailing list