Skip to content

Commit

Permalink
diag: Initialize peripheral mask properly before log switch
Browse files Browse the repository at this point in the history
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: Manoj Prabhu B <[email protected]>
  • Loading branch information
Manoj Prabhu B authored and Gerrit - the friendly Code Review server committed Aug 6, 2019
1 parent b6f62dc commit a07b047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/diag/diagchar_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,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;

Expand Down

1 comment on commit a07b047

@stefanhh0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already cherry-picked, see: 37ad06d

Please sign in to comment.