Skip to content

Commit

Permalink
Correct error code for sys_personality
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Feb 17, 2020
1 parent dfb9f66 commit e223d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,5 @@ dword_t sys_personality(dword_t pers) {
return 0x00000000;
if (pers == 0x00000000) // set personality to Linux
return 0x00000000;
return -1; // otherwise return error
return _EINVAL; // otherwise return error
}

0 comments on commit e223d8e

Please sign in to comment.