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

Commit 19b3f316 authored by Stanley Miao's avatar Stanley Miao Committed by Takashi Iwai
Browse files

ALSA: Fix a Oops bug in omap soc driver.



There will be a Oops or frequent underrun messages when playing music with
omap soc driver, this is because a data region is incorretly sized, other data
region will be overwriten when writing to this data region.

Signed-off-by: default avatarStanley Miao <stanley.miao@windriver.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Cc: stable@kernel.org
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 13d428af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ static int omap_pcm_open(struct snd_pcm_substream *substream)
	if (ret < 0)
		goto out;

	prtd = kzalloc(sizeof(prtd), GFP_KERNEL);
	prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
	if (prtd == NULL) {
		ret = -ENOMEM;
		goto out;