summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/trace.c')
-rw-r--r--arch/s390/kernel/trace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kernel/trace.c b/arch/s390/kernel/trace.c
index 21a5df99552b..dde7654f5c68 100644
--- a/arch/s390/kernel/trace.c
+++ b/arch/s390/kernel/trace.c
@@ -18,6 +18,9 @@ void trace_s390_diagnose_norecursion(int diag_nr)
unsigned long flags;
unsigned int *depth;
+ /* Avoid lockdep recursion. */
+ if (IS_ENABLED(CONFIG_LOCKDEP))
+ return;
local_irq_save(flags);
depth = this_cpu_ptr(&diagnose_trace_depth);
if (*depth == 0) {