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

Commit a5e78c5e authored by Manoj Prabhu B's avatar Manoj Prabhu B Committed by Gerrit - the friendly Code Review server
Browse files

diag: Initialize peripheral mask properly before log switch



Prevent the possibility of passing invalid peripheral mask value
as parameter to switch logging function by initializing peripheral
mask.

Change-Id: Ied6e33febe9824f69c68ee191d659041ad79d6d8
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent 7076d114
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ static void diag_close_logging_process(const int pid)
	int i, j;
	int session_mask = 0;
	int device_mask = 0;
	uint32_t p_mask;
	uint32_t p_mask = 0;
	struct diag_md_session_t *session_info = NULL;
	struct diag_logging_mode_param_t params;