From: Eric Dumazet Date: Mon, 3 Feb 2014 20:52:14 +0000 (-0800) Subject: ip_tunnel: fix panic in ip_tunnel_xmit() X-Git-Tag: v3.14-rc3~36^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b045d37bd68c20ca88123c2b363cac5e3dae815f;p=pandora-kernel.git ip_tunnel: fix panic in ip_tunnel_xmit() Setting rt variable to NULL at the beginning of ip_tunnel_xmit() missed possible use of this variable as a scratch value. Also fixes a possible dst leak in tunnel_dst_check() : If we had to call tunnel_dst_reset(), we forgot to release the reference on dst. Merges tunnel_dst_get()/tunnel_dst_check() into a single tunnel_rtable_get() function for clarity. Many thanks to Tommi for his report and tests. Fixes: 7d442fab0a67 ("ipv4: Cache dst in tunnels") Reported-by: Tommi Rantala Signed-off-by: Eric Dumazet Tested-by: Tommi Rantala Cc: Tom Herbert Cc: Maciej Żenczykowski Signed-off-by: David S. Miller --- Reading git-diff-tree failed