]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix ipv6_prefix_equal64_half mask conversion
authorFabio Baltieri <fabio.baltieri@linaro.org>
Wed, 16 Jan 2013 21:30:17 +0000 (22:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2013 19:29:58 +0000 (14:29 -0500)
commit3ad0bbf0b7c491af626c0c8d3f6f9f0224f6edcc
treed2dced33d326a9b2a75ecf095c3c4b4130bb7345
parent4591968bf5a5238bc7c278c9b9e204b3e00d56ca
ipv6: fix ipv6_prefix_equal64_half mask conversion

Fix the 64bit optimized version of ipv6_prefix_equal to convert the
bitmask to network byte order only after the bit-shift.

The bug was introduced in:

20d6c24 ipv6: 64bit version of ipv6_prefix_equal().

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h