Re: [PATCH] PnP Changes for 2.5.66

From: Adam Belay (ambx1@neo.rr.com)
Date: Tue Mar 25 2003 - 17:34:26 EST


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.985.1.94 -> 1.985.1.95
# sound/isa/als100.c 1.9 -> 1.10
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/24 ambx1@neo.rr.com 1.985.1.95
# ALS100 Memory Leak Fix
#
# This trivial patch adds a missing kfree, the leak occurs when
# pnp_activate_dev fails.
# --------------------------------------------
#
diff -Nru a/sound/isa/als100.c b/sound/isa/als100.c
--- a/sound/isa/als100.c Tue Mar 25 21:45:03 2003
+++ b/sound/isa/als100.c Tue Mar 25 21:45:03 2003
@@ -151,6 +151,7 @@
         err = pnp_activate_dev(pdev);
         if (err < 0) {
                 printk(KERN_ERR PFX "AUDIO pnp configure failure\n");
+ kfree(cfg);
                 return err;
         }
         port[dev] = pnp_port_start(pdev, 0);
-
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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:22 EST