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

Commit 90fbaffb authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Clear vote structures before using them



Ensure that the structures used for making GX/CX/MX votes
are cleared before using them.

Change-Id: Iec4fa6d6656eda52715fc757c4015aff84d3bab0
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 88711c66
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -593,6 +593,8 @@ static int rpmh_arc_cmds(struct gmu_device *gmu,
{
	unsigned int len;

	memset(arc, 0, sizeof(*arc));

	len = cmd_db_read_aux_data_len(res_id);
	if (len == 0)
		return -EINVAL;