From e387db8c4c7bd67bccfbd77e64f59d4e1427f1de Mon Sep 17 00:00:00 2001 From: Chih-En Lin Date: Sat, 5 Oct 2024 02:22:19 -0400 Subject: [PATCH] TMP --- examples/syscall-steal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/syscall-steal.c b/examples/syscall-steal.c index e0d5bd38..03f691dc 100644 --- a/examples/syscall-steal.c +++ b/examples/syscall-steal.c @@ -251,8 +251,15 @@ static int __init syscall_steal_start(void) return err; } #else - if (!(sys_call_table_stolen = acquire_sys_call_table())) + if (!(sys_call_table_stolen = acquire_sys_call_table())) { + pr_err("Cannot ge the sys_call_table\n"); return -1; + } + + barrier(); + if (sys_call_table_stolen == 0) + return 0; + barrier(); disable_write_protection();