Message ID | 1459455431-12687-135-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 126f8f6..8693c83 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -4917,7 +4917,10 @@ static ssize_t tracing_splice_read_pipe(struct file *filp, spd.nr_pages = i; - ret = splice_to_pipe(pipe, &spd); + if (i) + ret = splice_to_pipe(pipe, &spd); + else + ret = 0; out: splice_shrink_spd(&spd); return ret;