Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 622bac10 authored by Ravi Aravamudhan's avatar Ravi Aravamudhan Committed by Gerrit - the friendly Code Review server
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: I642fb595fc2caebc6f2f5419efed4fb560e4e4db
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 42e5b4a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -917,6 +917,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;