]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/relay.c
relay: fix splice problem
[linux-2.6-omap-h63xx.git] / kernel / relay.c
index d6204a4858183c754d5d401ad230c11f60a546c1..dc873fba90d27c74fa145f1df6caec132225c7eb 100644 (file)
@@ -1162,7 +1162,7 @@ static ssize_t relay_file_splice_read(struct file *in,
        ret = 0;
        spliced = 0;
 
-       while (len) {
+       while (len && !spliced) {
                ret = subbuf_splice_actor(in, ppos, pipe, len, flags, &nonpad_ret);
                if (ret < 0)
                        break;