aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2012-05-31 16:26:10 -0700
committerLinus Torvalds <[email protected]>2012-05-31 17:49:27 -0700
commita1d494495c69ef0810cd008f59310d2b9db28e36 (patch)
tree0785413b25f5383bf736d04169151e6a251dd079 /tools/perf/scripts/python
parentc67e5382fb3f312c95d8d01db40fb398e6da454d (diff)
pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown ioctl command
As described in commit 07d106d0a33d ("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. Signed-off-by: Will Deacon <[email protected]> Cc: Al Viro <[email protected]> Acked-by: Alan Cox <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions