https://github.com/torvalds/linux
Revision 8191ecd1d14c6914c660dfa007154860a7908857 authored by Jens Axboe on 10 April 2008, 06:24:25 UTC, committed by Jens Axboe on 10 April 2008, 06:24:25 UTC
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 <jens.axboe@oracle.com>
1 parent f4be31e
History
Tip revision: 8191ecd1d14c6914c660dfa007154860a7908857 authored by Jens Axboe on 10 April 2008, 06:24:25 UTC
splice: fix infinite loop in generic_file_splice_read()
Tip revision: 8191ecd
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 644 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 94.9 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top