[lkml]   [2007]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] ibmpex: Release IPMI user if hwmon registration fails
Roel Kluin <> found a minor defect in the init code if
hwmon device registration fails.

Signed-off-by: Darrick J. Wong <>

drivers/hwmon/ibmpex.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index fe2c261..c462824 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)
printk(KERN_ERR DRVNAME ": Error, unable to register hwmon "
"class device for interface %d\n",
- kfree(data);
- return;
+ goto out_user;

/* finally add the new bmc data to the bmc data list */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2007-10-10 00:09    [from the cache]
©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site