提交 ca755e0a 编写于 作者: B Borislav Petkov 提交者: Borislav Petkov

EDAC: Fix error return

We should return a negative value when we cannot get the toplevel edac
sysfs class.
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
上级 f6f94e2a
...@@ -1011,7 +1011,7 @@ void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci) ...@@ -1011,7 +1011,7 @@ void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci)
*/ */
int edac_sysfs_setup_mc_kset(void) int edac_sysfs_setup_mc_kset(void)
{ {
int err = 0; int err = -EINVAL;
struct sysdev_class *edac_class; struct sysdev_class *edac_class;
debugf1("%s()\n", __func__); debugf1("%s()\n", __func__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册