diff options
author | Adam Sindelar <[email protected]> | 2022-07-04 19:33:51 +0200 |
---|---|---|
committer | akpm <[email protected]> | 2022-07-29 18:07:14 -0700 |
commit | 3b8e7f5c42d1aa44f71fd219717c80e34101361e (patch) | |
tree | 14caa1f22d1453c7b0d988f98060df419a3ebb72 /scripts/gdb/linux/tasks.py | |
parent | d6e103a757fa7876e7ded76128d5dffe12402ab9 (diff) |
selftests/vm: fix errno handling in mrelease_test
mrelease_test should return KSFT_SKIP when process_mrelease is not
defined, but due to a perror call consuming the errno, it returns
KSFT_FAIL.
This patch decides the exit code before calling perror.
[[email protected]: fix remaining instances of errno mishandling]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 33776141b812 ("selftests: vm: add process_mrelease tests")
Signed-off-by: Adam Sindelar <[email protected]>
Reviewed-by: David Vernet <[email protected]>
Reviewed-by: Suren Baghdasaryan <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions