diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-09-25 12:23:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-05 09:35:52 +0200 |
commit | 9f119f5cc0480e7d1eaa4e16ecbcddcdd5e8db6f (patch) | |
tree | e446a6c04ea63f00c624c9d4c5214dd63b255bdc /net/lapb/lapb_timer.c | |
parent | 64304f5ae2f37d54072b208d53fb692ef941d168 (diff) |
vfs: Return -ENXIO for negative SEEK_HOLE / SEEK_DATA offsets
commit fc46820b27a2d9a46f7e90c9ceb4a64a1bc5fab8 upstream.
In generic_file_llseek_size, return -ENXIO for negative offsets as well
as offsets beyond EOF. This affects filesystems which don't implement
SEEK_HOLE / SEEK_DATA internally, possibly because they don't support
holes.
Fixes xfstest generic/448.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions