From: Hugh Dickins Date: Thu, 7 Jun 2007 07:36:00 +0000 (+0200) Subject: splice: __generic_file_splice_read: fix i_size_read() length checks X-Git-Tag: v2.6.22-rc5~56^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475ecade683566b19ebb84972de864039ac5fce3;p=pandora-kernel.git splice: __generic_file_splice_read: fix i_size_read() length checks __generic_file_splice_read's partial page check, at eof after readpage, not only got its calculations wrong, but also reused the loff variable: causing data corruption when splicing from a non-0 offset in the file's last page (revealed by ext2 -b 1024 testing on a loop of a tmpfs file). Signed-off-by: Hugh Dickins Signed-off-by: Jens Axboe --- Reading git-diff-tree failed