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

Commit 69737faf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Update boundary check for UPD session array index"

parents 463d8c28 fac74ad0
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);