[NET]: Add a dev_ioctl() fallback to sock_ioctl()
[linux-2.6.git] / net / packet / af_packet.c
index deda6fd..f69e5ed 100644 (file)
@@ -1521,7 +1521,7 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
 #endif
 
                default:
-                       return dev_ioctl(cmd, (void __user *)arg);
+                       return -ENOIOCTLCMD;
        }
        return 0;
 }