On Sun, Feb 16, 2014 at 04:09:55PM +0000, Patrick McHardy wrote: > On Sun, Feb 16, 2014 at 02:01:58PM +0100, Nikolay Aleksandrov wrote: > > Add a check if payload's length is a power of 2 when selecting ops. > > The fast ops were meant for well aligned loads, also this fixes a > > small bug when using a length of 3 with some offsets which causes > > only 1 byte to be loaded because the fast ops are chosen. > > > > Signed-off-by: Nikolay Aleksandrov <nikolay@xxxxxxxxxx> > > --- > > v3: Check the length, not the offset. > > v2: use is_power_of_2, and adjust order of checks as per Patrick's comment > > > > Sorry for the noise, I shouldn't hurry so much. This patch applies to > > Dave's -net tree. > > Thanks! > > Acked-by: Patrick McHardy <kaber@xxxxxxxxx> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html