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

Commit 3d8d1a2c authored by Kenneth Westfield's avatar Kenneth Westfield
Browse files

msm: audio: qdsp6v2: Zero the cfg stack var



Write zeroes into the stack variable cfg to ensure
no previously written stack data is sent to
user-space.

CRs-Fixed: 551574
Change-Id: Ib641c80ebe2acc06396c3f36eb551ed6d3271cea
Signed-off-by: default avatarKenneth Westfield <kwestfie@codeaurora.org>
parent 179b553f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -125,6 +125,7 @@ static long aac_in_ioctl(struct file *file,
	case AUDIO_GET_AAC_ENC_CONFIG: {
		struct msm_audio_aac_enc_config cfg;
		struct msm_audio_aac_enc_config *enc_cfg;
		memset(&cfg, 0, sizeof(cfg));
		enc_cfg = audio->enc_cfg;
		if (enc_cfg->channels == CH_MODE_MONO)
			cfg.channels = 1;