aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2007-10-09 18:08:24 -0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-10-11 07:42:00 -0400
commit4cfdbe7f6cfdc07c27ae8ac490cd3453440dd9d8 (patch)
tree9b1d9328b2879d594257bd2e1487ca3b22a2f101 /drivers/hwmon
parente95c237d78c0dc8fc0ae1207cec87af7a37dd366 (diff)
hwmon: (ibmpex) Release IPMI user if hwmon registration fails
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/ibmpex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index fe2c2616c6b..c462824ffcc 100644
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -498,8 +498,7 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
498 printk(KERN_ERR DRVNAME ": Error, unable to register hwmon " 498 printk(KERN_ERR DRVNAME ": Error, unable to register hwmon "
499 "class device for interface %d\n", 499 "class device for interface %d\n",
500 data->interface); 500 data->interface);
501 kfree(data); 501 goto out_user;
502 return;
503 } 502 }
504 503
505 /* finally add the new bmc data to the bmc data list */ 504 /* finally add the new bmc data to the bmc data list */