From: Jens Axboe Date: Thu, 10 Apr 2008 06:24:25 +0000 (+0200) Subject: splice: fix infinite loop in generic_file_splice_read() X-Git-Tag: v2.6.25-rc9~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8191ecd1d14c6914c660dfa007154860a7908857;p=pandora-kernel.git splice: fix infinite loop in generic_file_splice_read() There's a quirky loop in generic_file_splice_read() that could go on indefinitely, if the file splice returns 0 permanently (and not just as a temporary condition). Get rid of the loop and pass back -EAGAIN correctly from __generic_file_splice_read(), so we handle that condition properly as well. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed