diff --git a/drivers/char/diag/diagchar_core.c b/drivers/char/diag/diagchar_core.c index 3705c23f9a874fe6e1bc0ba3325e34985934d3c6..b294305c6aa29de4d1cdebe3c2cb55a71fbbefc8 100644 --- a/drivers/char/diag/diagchar_core.c +++ b/drivers/char/diag/diagchar_core.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2008-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -982,6 +982,7 @@ int diag_switch_logging(int requested_mode) pr_err("socket process, status: %d\n", status); } + driver->socket_process = NULL; } } else if (driver->logging_mode == SOCKET_MODE) { driver->socket_process = current;