Commit:     4cfdbe7f6cfdc07c27ae8ac490cd3453440dd9d8
Parent:     e95c237d78c0dc8fc0ae1207cec87af7a37dd366
Author:     Darrick J. Wong <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 9 15:08:24 2007 -0700
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 07:42:00 2007 -0400

    hwmon: (ibmpex) Release IPMI user if hwmon registration fails
    Roel Kluin <[EMAIL PROTECTED]> found a minor defect in the init code if
    hwmon device registration fails.
    Signed-off-by: Darrick J. Wong <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
 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 
                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 git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to