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
This commit is contained in:
Jia He 2022-10-18 08:22:14 +00:00 committed by Borislav Petkov
parent 0d2aa70b8f
commit f5e32344d4
1 changed files with 1 additions and 1 deletions

View File

@ -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;