Skip to content

Commit

Permalink
EDAC/igen6: Return the correct error type when not the MC owner
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jia He authored and Borislav Petkov committed Oct 25, 2022
1 parent 0d2aa70 commit f5e3234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/igen6_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f5e3234

Please sign in to comment.