|
@@ -904,7 +904,7 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu)
|
|
return;
|
|
return;
|
|
|
|
|
|
WARN_ON_ONCE(!irqs_disabled());
|
|
WARN_ON_ONCE(!irqs_disabled());
|
|
- if (tr->allocated_snapshot) {
|
|
|
|
|
|
+ if (!tr->allocated_snapshot) {
|
|
/* Only the nop tracer should hit this when disabling */
|
|
/* Only the nop tracer should hit this when disabling */
|
|
WARN_ON_ONCE(tr->current_trace != &nop_trace);
|
|
WARN_ON_ONCE(tr->current_trace != &nop_trace);
|
|
return;
|
|
return;
|