Skip to content

Commit

Permalink
ALSA: Fix a Oops bug in omap soc driver.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Cc: [email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Stanley Miao authored and tiwai committed Dec 19, 2008
1 parent 13d428a commit 19b3f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/omap/omap-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19b3f31

Please sign in to comment.