ipv6: fix the noflags test in addrconf_get_prefix_route
authorRomain Kuntz <r.kuntz@ipflavors.com>
Wed, 9 Jan 2013 14:02:26 +0000 (15:02 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Feb 2013 03:15:32 +0000 (03:15 +0000)
commit77b3f442bce440d228ad0002974e2c8189458b41
treef7ba41e2c0396aa38d5df3c545b5fe03615da031
parent35dc6fe99d2a18517078eb05f23604ca588fd207
ipv6: fix the noflags test in addrconf_get_prefix_route

[ Upstream commit 85da53bf1c336bb07ac038fb951403ab0478d2c5 ]

The tests on the flags in addrconf_get_prefix_route() does no make
much sense: the 'noflags' parameter contains the set of flags that
must not match with the route flags, so the test must be done
against 'noflags', and not against 'flags'.

Signed-off-by: Romain Kuntz <r.kuntz@ipflavors.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/addrconf.c