]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net/ipv4/route.c: prevent oops
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Oct 2015 22:13:20 +0000 (09:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 5 Nov 2015 05:11:49 +0000 (16:11 +1100)
Fix oops in ip_route_input_slow()

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

index 85f184e429c63c8c426f58c779dc3544cf2e2a54..da11b54563fdd2ef697d9668bad2e5b6ea99f376 100644 (file)
@@ -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)