projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95c237
)
hwmon: (ibmpex) Release IPMI user if hwmon registration fails
author
Darrick J. Wong
<djwong@us.ibm.com>
Tue, 9 Oct 2007 22:08:24 +0000
(15:08 -0700)
committer
Mark M. Hoffman
<mhoffman@lightlink.com>
Thu, 11 Oct 2007 11:42:00 +0000
(07:42 -0400)
Roel Kluin <12o3l@tiscali.nl> found a minor defect in the init code if
hwmon device registration fails.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/ibmpex.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ibmpex.c
b/drivers/hwmon/ibmpex.c
index
fe2c261
..
c462824
100644
(file)
--- a/
drivers/hwmon/ibmpex.c
+++ b/
drivers/hwmon/ibmpex.c
@@
-498,8
+498,7
@@
static void ibmpex_register_bmc(int iface, struct device *dev)
printk(KERN_ERR DRVNAME ": Error, unable to register hwmon "
"class device for interface %d\n",
data->interface);
- kfree(data);
- return;
+ goto out_user;
}
/* finally add the new bmc data to the bmc data list */