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

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

Merge "msm: audio: qdsp6v2: Zero the cfg stack var"

parents 7ab4aa2d 3d8d1a2c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line 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
 * 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
 * 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: {
	case AUDIO_GET_AAC_ENC_CONFIG: {
		struct msm_audio_aac_enc_config cfg;
		struct msm_audio_aac_enc_config cfg;
		struct msm_audio_aac_enc_config *enc_cfg;
		struct msm_audio_aac_enc_config *enc_cfg;
		memset(&cfg, 0, sizeof(cfg));
		enc_cfg = audio->enc_cfg;
		enc_cfg = audio->enc_cfg;
		if (enc_cfg->channels == CH_MODE_MONO)
		if (enc_cfg->channels == CH_MODE_MONO)
			cfg.channels = 1;
			cfg.channels = 1;