diff --git a/scst/src/scst_debug.c b/scst/src/scst_debug.c index 88acf74e9..e470cce10 100644 --- a/scst/src/scst_debug.c +++ b/scst/src/scst_debug.c @@ -54,7 +54,7 @@ static inline int get_current_tid(void) * Unfortunately, task_pid_vnr() isn't IRQ-safe, so otherwise * it can oops. ToDo. */ - return 0; + return current->pid; } return task_pid_vnr(current); #endif