diff options
author | Will Deacon <will.deacon@arm.com> | 2012-05-25 12:39:13 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-31 03:04:55 +0200 |
commit | 46ce341b2f176c2611f12ac390adf862e932eb02 (patch) | |
tree | 17884033d37ddf08d20b69739aa5a3559c232fc0 /sound/ppc/awacs.c | |
parent | vfs: remove unused __d_splice_alias argument (diff) | |
download | linux-46ce341b2f176c2611f12ac390adf862e932eb02.tar.xz linux-46ce341b2f176c2611f12ac390adf862e932eb02.zip |
pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown ioctl command
As described in commit 07d106d0a ("vfs: fix up ENOIOCTLCMD error
handling"), drivers should return -ENOIOCTLCMD if they receive an ioctl
command which they don't understand. Doing so will result in -ENOTTY
being returned to userspace, which matches the behaviour of the compat
layer if it fails to translate an ioctl command.
This patch fixes the pipe ioctl to return -ENOIOCTLCMD instead of
-EINVAL when passed an unknown ioctl command.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'sound/ppc/awacs.c')
0 files changed, 0 insertions, 0 deletions