From 9aa4a43965d6a4f72d618eb65100c5a909258f92 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 22 Oct 2015 09:13:20 +1100 Subject: [PATCH] net/ipv4/route.c: prevent oops Fix oops in ip_route_input_slow() Signed-off-by: Andrew Morton --- net/ipv4/route.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85f184e429c6..da11b54563fd 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1740,6 +1740,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) -- 2.39.2