From: David S. Miller Date: Mon, 5 Dec 2011 18:21:42 +0000 (-0500) Subject: ipv4: Fix peer validation on cached lookup. X-Git-Tag: v3.2-rc5~38^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de398fb8b92eba3447298053a483727bdd5fe37e;p=pandora-kernel.git ipv4: Fix peer validation on cached lookup. If ipv4_valdiate_peer() fails during a cached entry lookup, we'll NULL derer since the loop iterator assumes rth is not NULL. Letting this be handled as a failure is just bogus, so just make it not fail. If we have trouble getting a non-NULL neighbour for the redirected gateway, just restore the original gateway and continue. The very next use of this cached route will try again. Reported-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed