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

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

diag: Update boundary check for UPD session array index



The patch updates the boundary check for the array index
moving beyond the array size.

Change-Id: I9f4cd683a613e32befc0a2dc9c5b25f061df5224
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent dd3c2725
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1668,7 +1668,7 @@ static int diag_switch_logging(struct diag_logging_mode_param_t *param)
		}
		if (!param->diag_id ||
			(param->pd_val < UPD_WLAN) ||
			(param->pd_val > NUM_MD_SESSIONS)) {
			(param->pd_val >= NUM_MD_SESSIONS)) {
			DIAG_LOG(DIAG_DEBUG_USERSPACE,
			"diag_id support is not present for the pd mask = %d\n",
			param->pd_mask);