diff options
| author | Rusty Russell <[email protected]> | 2008-02-08 12:20:15 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-08 17:22:33 +0000 |
| commit | c2ec66828fd253802abb912668f4bf9597e3c898 (patch) | |
| tree | 6d7dfe34b423b5bf32a5a5ae6b35207db4bb5d22 /lib/fault-inject.c | |
| parent | aio: partial write should not return error code (diff) | |
| download | kernel-c2ec66828fd253802abb912668f4bf9597e3c898.tar.gz kernel-c2ec66828fd253802abb912668f4bf9597e3c898.zip | |
aio: negative offset should return -EINVAL
An AIO read or write should return -EINVAL if the offset is negative.
This check matches the one in pread and pwrite.
This was found by the libaio test suite.
Signed-off-by: Rusty Russell <[email protected]>
Acked-by: Zach Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
