Skip to content

Commit

Permalink
hwmon: (ibmpex) Release IPMI user if hwmon registration fails
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Darrick J. Wong authored and Mark M. Hoffman committed Oct 11, 2007
1 parent e95c237 commit 4cfdbe7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/hwmon/ibmpex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4cfdbe7

Please sign in to comment.