pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown ioctl command
[linux-3.10.git] / fs / pipe.c
index fec5e4a..95ebb56 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -693,7 +693,7 @@ static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 
                        return put_user(count, (int __user *)arg);
                default:
-                       return -EINVAL;
+                       return -ENOIOCTLCMD;
        }
 }