[NET]: Make packet reception network namespace safe
[linux-2.6.git] / net / irda / irlap_frame.c
index 25a3444..77ac27e 100644 (file)
@@ -1326,6 +1326,9 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
        int command;
        __u8 control;
 
+       if (dev->nd_net != &init_net)
+               goto out;
+
        /* FIXME: should we get our own field? */
        self = (struct irlap_cb *) dev->atalk_ptr;