aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index d141fc98f3a8..2af940433e96 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2253,6 +2253,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
2253 if (signal_pending(current)) 2253 if (signal_pending(current))
2254 return -EINTR; 2254 return -EINTR;
2255 2255
2256 if (iter->trace != current_trace)
2257 return 0;
2258
2256 /* 2259 /*
2257 * We block until we read something and tracing is disabled. 2260 * We block until we read something and tracing is disabled.
2258 * We still block if tracing is disabled, but we have never 2261 * We still block if tracing is disabled, but we have never