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

Commit 3d63a339 authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Banajit Goswami
Browse files

ASoC: wcd_cpe_core: Initialize variables before use



Initialize variable before use to avoid
invalid memory access.

CRs-fixed: 2004067
Change-Id: I882cdf78709d6dcc2dcd1fc7f903492aa2581138
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent 71ee774c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3538,6 +3538,8 @@ static int wcd_cpe_lsm_lab_control(
	pr_debug("%s: enter payload_size = %d Enable %d\n",
		 __func__, pld_size, enable);

	memset(&cpe_lab_enable, 0, sizeof(cpe_lab_enable));

	if (fill_lsm_cmd_header_v0_inband(&cpe_lab_enable.hdr, session->id,
		(u8) pld_size, CPE_LSM_SESSION_CMD_SET_PARAMS_V2)) {
		return -EINVAL;