OSDN Git Service

net/ipv4/route.c: prevent oops
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 22 Sep 2015 23:04:41 +0000 (09:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 25 Sep 2015 04:18:20 +0000 (14:18 +1000)
Fix oops in ip_route_input_slow()

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
net/ipv4/route.c

index c9fd045..a30b9f3 100644 (file)
@@ -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)