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

Commit 8983966c authored by Fred Oh's avatar Fred Oh Committed by Matt Wagantall
Browse files

misc: qcom: qdsp6v2: fix uninitialized variable



Wrong variable is used for copy_from_user(). It cuases user setting is
not set properly to audio drivers.

Change-Id: I1d54b9b20d3664045c24ffa2066ecc1b7abe5e87
Signed-off-by: default avatarFred Oh <fred@codeaurora.org>
parent eeb36604
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1939,7 +1939,7 @@ static long audio_aio_compat_ioctl(struct file *file, unsigned int cmd,
		struct msm_audio_buf_cfg cfg;
		struct msm_audio_buf_cfg32 cfg_32;
		mutex_lock(&audio->lock);
		if (copy_from_user(&cfg, (void *)arg, sizeof(cfg))) {
		if (copy_from_user(&cfg_32, (void *)arg, sizeof(cfg_32))) {
			pr_err("%s: copy_from_user for AUDIO_SET_CONFIG_32 failed\n",
				__func__);
			rc = -EFAULT;