public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL] [patch, 2.5] cs4232 doesn't kfree on error path
@ 2002-07-18  3:09 Rusty Trivial Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Trivial Russell @ 2002-07-18  3:09 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

From: (via Rusty) Marcus Alanen <maalanen@ra.abo.fi>

  ===== sound/oss/cs4232.c 1.5 vs edited =====

--- trivial-2.5.26/sound/oss/cs4232.c.orig	Thu Jul 18 13:00:55 2002
+++ trivial-2.5.26/sound/oss/cs4232.c	Thu Jul 18 13:00:55 2002
@@ -406,6 +406,7 @@
 	isapnpcfg->io_base	= dev->resource[0].start;
 	if (probe_cs4232(isapnpcfg,TRUE) == 0) {
 		printk(KERN_ERR "cs4232: ISA PnP card found, but not detected?\n");
+		kfree(isapnpcfg);
 		return -ENODEV;
 	}
 	attach_cs4232(isapnpcfg);
-- 
  Don't blame me: the Monkey is driving

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-18  3:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-18  3:09 [TRIVIAL] [patch, 2.5] cs4232 doesn't kfree on error path Rusty Trivial Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox