]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/irda/irlap_frame.c
[IRDA]: Compilation for CONFIG_INET=n case
[linux-2.6-omap-h63xx.git] / net / irda / irlap_frame.c
index 25a3444a9234f1faba7ba2e2e88b18e452d1f44f..4f3764546b2fe1eae1d4aef2582d97c807c120e4 100644 (file)
@@ -18,7 +18,7 @@
  *     published by the Free Software Foundation; either version 2 of
  *     the License, or (at your option) any later version.
  *
- *     Neither Dag Brattli nor University of Tromsø admit liability nor
+ *     Neither Dag Brattli nor University of Tromsø admit liability nor
  *     provide warranty for any of this software. This material is
  *     provided "AS-IS" and at no charge.
  *
@@ -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;