diff options
author | Dave Young <hidave.darkstar@gmail.com> | 2008-03-20 01:01:01 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-20 02:53:36 +0100 |
commit | 08ca0db8aa2db4ddcf487d46d85dc8ffb22162cc (patch) | |
tree | 3cb882dd0bc473bcb397752c9894d35ec0a918d7 /init | |
parent | fs: fix kernel-doc notation warnings (diff) | |
download | linux-08ca0db8aa2db4ddcf487d46d85dc8ffb22162cc.tar.xz linux-08ca0db8aa2db4ddcf487d46d85dc8ffb22162cc.zip |
zisofs: fix readpage() outside i_size
A read request outside i_size will be handled in do_generic_file_read(). So
we just return 0 to avoid getting -EIO as normal reading, let
do_generic_file_read do the rest.
At the same time we need unlock the page to avoid system stuck.
Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10227
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Jan Kara <jack@suse.cz>
Report-by: Christian Perle <chris@linuxinfotag.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions