Re: [PATCH] aio: negative offset should return -EINVAL

2008-01-03 Thread Zach Brown
Rusty Russell wrote: > 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]> This looks fine to me. Signed-off-by: Zach Brown <[EMA

[PATCH] aio: negative offset should return -EINVAL

2008-01-03 Thread Rusty Russell
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]> diff -r 18802689361a fs/aio.c --- a/fs/aio.c Thu Jan 03 15:22:24 2008 +1100 +++ b/fs/ai