diff --git a/drivers/char/diag/diagchar_core.c b/drivers/char/diag/diagchar_core.c index 263715d0b4da..00b5c251d4f7 100644 --- a/drivers/char/diag/diagchar_core.c +++ b/drivers/char/diag/diagchar_core.c @@ -906,6 +906,7 @@ int diag_switch_logging(unsigned long ioarg) pr_err("socket process, status: %d\n", status); } + driver->socket_process = NULL; } } else if (driver->logging_mode == SOCKET_MODE) { driver->socket_process = current;