aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 8e189ffb899a..94629760dabf 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3428,13 +3428,6 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
3428 int size, i; 3428 int size, i;
3429 size_t ret; 3429 size_t ret;
3430 3430
3431 /*
3432 * We can't seek on a buffer input
3433 */
3434 if (unlikely(*ppos))
3435 return -ESPIPE;
3436
3437
3438 for (i = 0; i < PIPE_BUFFERS && len; i++, len -= size) { 3431 for (i = 0; i < PIPE_BUFFERS && len; i++, len -= size) {
3439 struct page *page; 3432 struct page *page;
3440 int r; 3433 int r;
@@ -3474,6 +3467,7 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
3474 spd.partial[i].offset = 0; 3467 spd.partial[i].offset = 0;
3475 spd.partial[i].private = (unsigned long)ref; 3468 spd.partial[i].private = (unsigned long)ref;
3476 spd.nr_pages++; 3469 spd.nr_pages++;
3470 *ppos += size;
3477 } 3471 }
3478 3472
3479 spd.nr_pages = i; 3473 spd.nr_pages = i;