diff --git a/scst/include/scst_debug.c b/scst/include/scst_debug.c index 898a69351..b2e4943a0 100644 --- a/scst/include/scst_debug.c +++ b/scst/include/scst_debug.c @@ -57,6 +57,9 @@ void debug_print_buffer(const void *data, int len) int f = 0; unsigned long flags; + if (buf == NULL) + return; + spin_lock_irqsave(&trace_buf_lock, flags); PRINT(NO_FLAG, " (h)___0__1__2__3__4__5__6__7__8__9__A__B__C__D__E__F");