Patchwork [3.5.y.z,extended,stable] Patch "ipv6: fix the noflags test in addrconf_get_prefix_route" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Feb. 15, 2013, 3:10 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/220587/
State New
Headers show


Herton Ronaldo Krzesinski - Feb. 15, 2013, 3:10 a.m.
This is a note to let you know that I have just added a patch titled

    ipv6: fix the noflags test in addrconf_get_prefix_route

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 710d66f084bdb9f98d0c4679762a06fbdf8a4435 Mon Sep 17 00:00:00 2001
From: Romain Kuntz <>
Date: Wed, 9 Jan 2013 15:02:26 +0100
Subject: [PATCH] ipv6: fix the noflags test in addrconf_get_prefix_route

commit 85da53bf1c336bb07ac038fb951403ab0478d2c5 upstream.

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 <>
Acked-by: YOSHIFUJI Hideaki <>
Signed-off-by: David S. Miller <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 net/ipv6/addrconf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 0808ad5..fc9ac78 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1741,7 +1741,7 @@  static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx,
 		if ((rt->rt6i_flags & flags) != flags)
-		if ((noflags != 0) && ((rt->rt6i_flags & flags) != 0))
+		if ((rt->rt6i_flags & noflags) != 0)