提交 4cfdbe7f 编写于 作者: D Darrick J. Wong 提交者: Mark M. Hoffman

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: NDarrick J. Wong <djwong@us.ibm.com>
Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
上级 e95c237d
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册