diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-10-22 09:13:20 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-11-09 13:36:38 +1100 |
commit | cda328e85816897e0f7edc74b73e75717601c522 (patch) | |
tree | 39ce9cd2b37c81fec468a05d40393da0da699a9e | |
parent | ee3071d5c32060e5b79b348a1bc9c167a170e986 (diff) |
net/ipv4/route.c: prevent oops
Fix oops in ip_route_input_slow()
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |