mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 23:48:56 -04:00
EDAC: Fix error return
We should return a negative value when we cannot get the toplevel edac sysfs class. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
committed by
Borislav Petkov
parent
f6f94e2ab1
commit
ca755e0a49
@@ -1011,7 +1011,7 @@ void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci)
|
||||
*/
|
||||
int edac_sysfs_setup_mc_kset(void)
|
||||
{
|
||||
int err = 0;
|
||||
int err = -EINVAL;
|
||||
struct sysdev_class *edac_class;
|
||||
|
||||
debugf1("%s()\n", __func__);
|
||||
|
||||
Reference in New Issue
Block a user