Commit 7baadd7f authored by Pavel Emelyanov's avatar Pavel Emelyanov

check: Fix set_mm_exe_file prctl retcode

Now it is EBADF for bogus descriptor we pass
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 888bc286
......@@ -104,8 +104,8 @@ static int check_prctl(void)
}
ret = sys_prctl(PR_SET_MM, PR_SET_MM_EXE_FILE, -1, 0, 0);
if (ret != -EBUSY) {
pr_msg("prctl: PR_SET_MM_EXE_FILE is not supported\n");
if (ret != -EBADF) {
pr_msg("prctl: PR_SET_MM_EXE_FILE is not supported (%d)\n", ret);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment