Skip to content

Commit

Permalink
Check the sys call table exist
Browse files Browse the repository at this point in the history
  • Loading branch information
linD026 committed Oct 5, 2024
1 parent 3a09a1e commit 0bb13d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/syscall-steal.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,10 @@ 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;
}

disable_write_protection();

Expand Down

0 comments on commit 0bb13d6

Please # to comment.