Merge to Fedora kernel-2.6.6-1.422
[linux-2.6.git] / drivers / net / plip.c
index 4b8256c..31bbff4 100644 (file)
@@ -1219,6 +1219,9 @@ plip_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
        struct net_local *nl = netdev_priv(dev);
        struct plipconf *pc = (struct plipconf *) &rq->ifr_data;
 
+       if (cmd != SIOCDEVPLIP)
+               return -EOPNOTSUPP;
+
        switch(pc->pcmd) {
        case PLIP_GET_TIMEOUT:
                pc->trigger = nl->trigger;