Re: [PATCH] PnP Changes for 2.5.66

Adam Belay
2003-03-26T03:20:44Z

# 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);