From: Martin KaFai Lau Date: Wed, 21 Jan 2015 03:16:02 +0000 (-0800) Subject: ipv6: Fix __ip6_route_redirect X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~219^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0a1ba59921eaaa9cb8f97bb35f2e6870fcdfedc;p=pandora-kernel.git ipv6: Fix __ip6_route_redirect In my last commit (a3c00e4: ipv6: Remove BACKTRACK macro), the changes in __ip6_route_redirect is incorrect. The following case is missed: 1. The for loop tries to find a valid gateway rt. If it fails to find one, rt will be NULL. 2. When rt is NULL, it is set to the ip6_null_entry. 3. The newly added 'else if', from a3c00e4, will stop the backtrack from happening. Signed-off-by: Martin KaFai Lau Signed-off-by: David S. Miller --- Reading git-diff-tree failed