From: Andrew Morton Date: Wed, 21 Oct 2015 22:13:20 +0000 (+1100) Subject: net/ipv4/route.c: prevent oops X-Git-Tag: KARO-TXUL-2015-12-04~30^2~39 X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=9aa4a43965d6a4f72d618eb65100c5a909258f92 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 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)