Skip to content
Commit 08ca0db8 authored by Dave Young's avatar Dave Young Committed by Linus Torvalds
Browse files

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: default avatarDave Young <hidave.darkstar@gmail.com>
Acked-by: default avatarJan Kara <jack@suse.cz>
Report-by: default avatarChristian Perle <chris@linuxinfotag.de>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a6b91919
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment