Skip to content

Commit f5e3234

Browse files
justin-hesuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0d2aa70 commit f5e3234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/igen6_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ static int __init igen6_init(void)
12761276

12771277
owner = edac_get_owner();
12781278
if (owner && strncmp(owner, EDAC_MOD_STR, sizeof(EDAC_MOD_STR)))
1279-
return -ENODEV;
1279+
return -EBUSY;
12801280

12811281
edac_op_state = EDAC_OPSTATE_NMI;
12821282

0 commit comments

Comments
 (0)