Skip to content
Snippets Groups Projects
Commit 6faddcec authored by Tingyi Kuo's avatar Tingyi Kuo Committed by Carol_Jiang
Browse files

diag: Make fixes to diag_switch_logging

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.

Change-Id: I0cc0be474a1cb64bbe55e1dd5d7418591389a2a1
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/249012


Reviewed-by: default avatarCarol_Jiang <carol_jiang@asus.com>
Tested-by: default avatarCarol_Jiang <carol_jiang@asus.com>
parent 7aef45fd
No related branches found
No related tags found
No related merge requests found
......@@ -920,6 +920,7 @@ static 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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment