From: Stanley Miao Date: Fri, 19 Dec 2008 14:08:22 +0000 (+0800) Subject: ALSA: Fix a Oops bug in omap soc driver. X-Git-Tag: v2.6.28~19^2^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=19b3f31609dc8be3a56c78dcb7da723f10f7009c;p=linux-2.6-omap-h63xx.git 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: Stanley Miao Acked-by: Jarkko Nikula Cc: stable@kernel.org Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index e9084fdd208..acd68efb2b7 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -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;