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

Commit 4cc56025 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Fix pointer dereference"

parents 39dd327e 23654450
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -231,11 +231,11 @@ static struct ipahal_stats_init_pyld *ipahal_generate_init_pyld_flt_rt_v4_5(
	void *params, bool is_atomic_ctx)
{
	struct ipahal_stats_init_pyld *pyld;
	int num = (int)(params);
	long int num = (long int)(params);

	if (num > IPA_MAX_FLT_RT_CNT_INDEX ||
		num <= 0) {
		IPAHAL_ERR("num %d not valid\n", num);
		IPAHAL_ERR("num %ld not valid\n", num);
		return NULL;
	}
	pyld = IPAHAL_MEM_ALLOC(sizeof(*pyld) +