pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown ioctl command
[deliverable/linux.git] / fs / pipe.c
index fec5e4ad071a36bb8783bdcc8c40c07c614340a5..95ebb56de494de44efb6224ccfee1b96e4169267 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;
        }
 }
 
This page took 0.023767 seconds and 5 git commands to generate.