[TRIVIAL] [patch, 2.5] cs4232 doesn't kfree on error path

Rusty Trivial Russell (rusty@rustcorp.com.au)
Thu, 18 Jul 2002 13:09:57 +1000


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