aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r--net/decnet/dn_route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 4cfea9563d2a..580e786d0c38 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -584,6 +584,9 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
584 struct dn_dev *dn = (struct dn_dev *)dev->dn_ptr; 584 struct dn_dev *dn = (struct dn_dev *)dev->dn_ptr;
585 unsigned char padlen = 0; 585 unsigned char padlen = 0;
586 586
587 if (dev->nd_net != &init_net)
588 goto dump_it;
589
587 if (dn == NULL) 590 if (dn == NULL)
588 goto dump_it; 591 goto dump_it;
589 592