Okay. I can send a patch to revert ef9209b642f. But, can you make sure that the condition "(pstapriv->sta_aid[pstat->aid - 1] == NULL)" can satisfies in the for loop? Young On 2018/11/27 16:34, Dan Carpenter wrote: > On Tue, Nov 27, 2018 at 08:29:05AM +0000, Yang Xiao wrote: >> Hi, >> >> See commit ef9209b642f ("staging: rtl8723bs: Fix indenting errors and an >> off-by-one mistake in core/rtw_mlme_ext.c") for detail. >> >> I don't know how can you make sure that line 3254 can be true in the for >> loop. If the condition never satisfies, then there is an off-by-one >> access in line 3267. >> >> If you can prove it, then the patch is unnecessary. >> > Ugh... Patch ef9209b642f isn't right. :( > > Do you want to send a patch to change that back to the way it was. If > not then I can do it. > > regards, > dan carpenter > > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel