Re: [alsa-devel][PATCHv2 1/1] Fix a Oops bug in omap soc driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 19 Dec 2008 22:08:22 +0800
"ext Stanley.Miao" <stanley.miao@xxxxxxxxxxxxx> wrote:

> 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 <stanley.miao@xxxxxxxxxxxxx>
> ---
>  sound/soc/omap/omap-pcm.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
> index ce580a9..2adfbce 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(struct omap_runtime_data), GFP_KERNEL);

Oh my... Can you change this as

	prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);

like suggested by the CodingStyle and then you can have my ack.

Acked-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux