From: Hannes Frederic Sowa Date: Wed, 7 Aug 2013 00:34:31 +0000 (+0200) Subject: ipv6: don't stop backtracking in fib6_lookup_1 if subtree does not match X-Git-Tag: v3.11-rc6~11^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3be275851bc6fc90bfdcd732cd95563acd982b;p=pandora-kernel.git ipv6: don't stop backtracking in fib6_lookup_1 if subtree does not match In case a subtree did not match we currently stop backtracking and return NULL (root table from fib_lookup). This could yield in invalid routing table lookups when using subtrees. Instead continue to backtrack until a valid subtree or node is found and return this match. Also remove unneeded NULL check. Reported-by: Teco Boot Cc: YOSHIFUJI Hideaki Cc: David Lamparter Cc: Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed