lkml.org 
[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: ALSA: Remove subsystem-specific malloc (7/8)
Date
Hi, 

At Wed, 9 Jun 2004 00:25:08 +0300, Pekka J Enberg wrote:
> > --- linux-2.6.6/sound/arm/sa11xx-uda1341.c 2004-06-08 23:57:25.623550760 +0300
> > +++ alsa-2.6.6/sound/arm/sa11xx-uda1341.c 2004-06-05 20:30:06.000000000 +0300
> > @@ -1010,6 +1010,7 @@ static int __init sa11xx_uda1341_init(vo
> > static void __exit sa11xx_uda1341_exit(void)
> > {
> > snd_card_free(sa11xx_uda1341->card);
> > + kfree(sa11xx_uda1341);
> > }

On 6/9/2004, "Takashi Iwai" <tiwai@suse.de> wrote:
> this causes double-free.
> sa11xx_uda1341 is already released in snd_sa11xx_uda1341_free(),
> invoked from snd_card_free().

You're right. Sorry about that one.

Pekka
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.034 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site