From: Andrew Morton Date: Tue, 22 Sep 2015 23:04:41 +0000 (+1000) Subject: net/ipv4/route.c: prevent oops X-Git-Tag: next-20150925~1^2~4 X-Git-Url: http://git.osdn.net/view?p=uclinux-h8%2Flinux.git;a=commitdiff_plain;h=92ee214018d083694c524452297e0307ca3ac0eb net/ipv4/route.c: prevent oops Fix oops in ip_route_input_slow() Signed-off-by: Andrew Morton --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index c9fd04546edf..a30b9f369ee4 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1692,6 +1692,8 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, struct net *net = dev_net(dev); bool do_cache; + res.table = 0; + /* IP on this device is disabled. */ if (!in_dev)