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

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

Merge "msm: gsi: fix memory corruption from debugfs"

parents 0a040f12 85a93b95
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -653,10 +653,10 @@ static ssize_t gsi_rst_stats(struct file *file,
	} else if (ch_id < 0 || ch_id >= GSI_MAX_CHAN ||
		   !gsi_ctx->chan[ch_id].allocated) {
		goto error;
	}

	} else {
		min = ch_id;
		max = ch_id + 1;
	}

	for (ch_id = min; ch_id < max; ch_id++)
		memset(&gsi_ctx->chan[ch_id].stats, 0,