sit: fix panic with route cache in ip tunnels
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 20 Feb 2014 09:19:31 +0000 (10:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2014 18:13:50 +0000 (13:13 -0500)
commitcf71d2bc0b8a473209d5c770ce560853bd720d14
tree9ecc5d5a3f3c0bb44a5f82a238f427291efef702
parent6671b2240c54585d4afb5286a29f1569fe5e40a8
sit: fix panic with route cache in ip tunnels

Bug introduced by commit 7d442fab0a67 ("ipv4: Cache dst in tunnels").

Because sit code does not call ip_tunnel_init(), the dst_cache was not
initialized.

CC: Tom Herbert <therbert@google.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel.c
net/ipv6/sit.c