aboutsummaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2014-02-03 12:52:14 -0800
committerDavid S. Miller <[email protected]>2014-02-03 13:01:48 -0800
commitb045d37bd68c20ca88123c2b363cac5e3dae815f (patch)
tree2a623d5d9a5c3e8a7465a069ce8664897eae53fe /tools/perf
parent4fe46b9a4d0b5eef96867e6d5134159e5a65d2a5 (diff)
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 <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Tested-by: Tommi Rantala <[email protected]> Cc: Tom Herbert <[email protected]> Cc: Maciej Żenczykowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions