diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index ab3df804fa96a9b109e80f0891a9a2f2de933fc3..598a7aa7d0ae9f81d74205b11c0728629aee6f94 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -4593,7 +4593,7 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos, /* did we read anything? */ if (!spd.nr_pages) { - if (flags & SPLICE_F_NONBLOCK) + if ((file->f_flags & O_NONBLOCK) || (flags & SPLICE_F_NONBLOCK)) ret = -EAGAIN; else ret = 0;