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

Commit 24cdafed authored by Asish Bhattacharya's avatar Asish Bhattacharya
Browse files

msm: qdsp6v2: memset stack buffer allocation.



This is needed to avoid garbage data in uninitialized variables.

Change-Id: Ic4b4d7481644c2add187a9122a4e7cfe7255b379
CRs-Fixed: 553304
Signed-off-by: default avatarAsish Bhattacharya <asishb@codeaurora.org>
parent 7273ccdd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2009 Google, Inc.
 * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
 * Author: Brian Swetland <swetland@google.com>
 *
 * This software is licensed under the terms of the GNU General Public
@@ -260,6 +260,7 @@ static long pcm_out_ioctl(struct file *file, unsigned int cmd,
	case AUDIO_GET_CONFIG: {
		struct msm_audio_config config;
		pr_debug("%s: AUDIO_GET_CONFIG\n", __func__);
		memset(&config, 0, sizeof(config));
		config.buffer_size = pcm->buffer_size;
		config.buffer_count = pcm->buffer_count;
		config.sample_rate = pcm->sample_rate;