diff options
author | Jia He <justin.he@arm.com> | 2022-10-18 11:22:14 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-10-25 11:10:54 +0300 |
commit | f5e32344d472f1021b9d382333f01b356bc8b8b8 (patch) | |
tree | e034591b7832055b53f3065b25257df8251fba00 /drivers | |
parent | 0d2aa70b8f58c382059fe847fdaa65f05361fc1c (diff) | |
download | linux-f5e32344d472f1021b9d382333f01b356bc8b8b8.tar.xz |
EDAC/igen6: Return the correct error type when not the MC owner
Return -EBUSY instead of -ENODEV just like the other EDAC drivers do.
[ bp: Rewrite text. ]
Signed-off-by: Jia He <justin.he@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221018082214.569504-8-justin.he@arm.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/igen6_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/igen6_edac.c b/drivers/edac/igen6_edac.c index d33c666221f9..544dd19072ea 100644 --- a/drivers/edac/igen6_edac.c +++ b/drivers/edac/igen6_edac.c @@ -1276,7 +1276,7 @@ static int __init igen6_init(void) owner = edac_get_owner(); if (owner && strncmp(owner, EDAC_MOD_STR, sizeof(EDAC_MOD_STR))) - return -ENODEV; + return -EBUSY; edac_op_state = EDAC_OPSTATE_NMI; |