Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
linD026 committed Oct 5, 2024
1 parent 3a09a1e commit e387db8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/syscall-steal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit e387db8

Please sign in to comment.