From 92ee214018d083694c524452297e0307ca3ac0eb Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 23 Sep 2015 09:04:41 +1000 Subject: [PATCH 1/1] 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 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) -- 2.11.0