diff options
-rw-r--r-- | 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 fe2c2616c6b1..c462824ffccf 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 */ |