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();