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

Commit ed27b517 authored by Asish Bhattacharya's avatar Asish Bhattacharya
Browse files

msm: qdsp5v2: memset stack buffer allocation.



This is needed to avoid garbage data in uninitialized variables.

Change-Id: I13b3279bc01efcb4dbe380709c6fc743a570ddb4
CRs-Fixed: 553323
Signed-off-by: default avatarAsish Bhattacharya <asishb@codeaurora.org>
parent cfc78f80
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 *
 * Copyright (C) 2008 Google, Inc.
 * Copyright (C) 2008 HTC Corporation
 * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
@@ -734,7 +734,7 @@ static long audlpa_process_event_req(struct audio *audio, void __user *arg)
	struct audlpa_event *drv_evt = NULL;
	int timeout;
	unsigned long flags;

	memset(&usr_evt, 0, sizeof(usr_evt));
	if (copy_from_user(&usr_evt, arg, sizeof(struct msm_audio_event)))
		return -EFAULT;