Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759375AbZAMBc7 (ORCPT ); Mon, 12 Jan 2009 20:32:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758161AbZAMB3G (ORCPT ); Mon, 12 Jan 2009 20:29:06 -0500 Received: from kroah.org ([198.145.64.141]:36013 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757289AbZAMB3E (ORCPT ); Mon, 12 Jan 2009 20:29:04 -0500 Date: Mon, 12 Jan 2009 17:27:11 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Stanley Miao , Jarkko Nikula , Takashi Iwai Subject: [patch 11/21] ALSA: Fix a Oops bug in omap soc driver. Message-ID: <20090113012711.GL4512@kroah.com> References: <20090113012006.063755472@mini.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="alsa-fix-a-oops-bug-in-omap-soc-driver.patch" In-Reply-To: <20090113012633.GA4512@kroah.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 38 2.6.27-stable review patch. If anyone has any objections, please let us know. ------------------ From: Stanley Miao commit 19b3f31609dc8be3a56c78dcb7da723f10f7009c upstream. 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 Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/soc/omap/omap-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -231,7 +231,7 @@ static int omap_pcm_open(struct snd_pcm_ if (ret < 0) goto out; - prtd = kzalloc(sizeof(prtd), GFP_KERNEL); + prtd = kzalloc(sizeof(*prtd), GFP_KERNEL); if (prtd == NULL) { ret = -ENOMEM; goto out; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/