Memory Leak in sound/isa/es18xx.c
Quoted 8 lines · Eric Sesterhenn
hi,
your patch
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdi
ff;h=1c3985580445ef9225c1ea7714d6d963f7626eeb to add PnP BIOS support to the es18xx driver, removed a kfree(cfg) in an error path, was this intentional, because coverity flagged it as a memory leak, and i found nothing that speaks against it. Attached is a patch to readd thekfree()
Yes, looks just like a stupid bug. Thanks.
Quoted 13 lines
Signed-off-by Eric Sesterhenn <[email protected]>--- linux-2.6.18-git7/sound/isa/es18xx.c.orig 2006-09-27 17:02:57.000000000
+0200 +++linux-2.6.18-git7/sound/isa/es18xx.c2006-09-27
17:03:51.000000000 +0200 @@ -2154,6 +2154,7 @@ static int__devinitsnd_audiodrive_pnpc(quoted diff) +1
-0} /* Control port initialization */ if (pnp_activate_dev(acard->devc) < 0) { + kfree(cfg); snd_printk(KERN_ERR PFX "PnP control configure failure (out ofresources?)\n"); return
-EAGAIN;
}
Signature · 7 lines
Ondrej Zary ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Takashi Iwai
AppliedAt Thu, 28 Sep 2006 00:21:14 +0200,
Quoted 4 lines · Ondrej Zary
Quoted 2 lines · Eric Sesterhenn
hi,
Quoted 10 lines
Quoted 6 lines
your patch
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdi
ff;h=1c3985580445ef9225c1ea7714d6d963f7626eeb to add PnP BIOS support to the es18xx driver, removed a kfree(cfg) in an error path, was this intentional, because coverity flagged it as a memory leak, and i found nothing that speaks against it. Attached is a patch to readd thekfree()Yes, looks just like a stupid bug. Thanks.
Quoted 1 line
Signed-off-by Eric Sesterhenn <[email protected]>
Applied to HG tree now. Thanks.
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV