Skip to content

Commit

Permalink
diag: Make fixes to diag_switch_logging
Browse files Browse the repository at this point in the history
Diag driver holds on to the socket process task structure even
after signaling the process to exit. This patch clears the internal
handle after signaling.

Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
  • Loading branch information
Ravi Aravamudhan authored and neobuddy89 committed Feb 23, 2015
1 parent df43758 commit 7b33fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/diag/diagchar_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b33fbd

Please sign in to comment.