Skip to content

Commit

Permalink
kptools: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Jan 3, 2024
1 parent f9c728a commit ad8fcf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/kptools.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ static int fillin_patch_symbol(kallsym_t *kallsym, char *img_buf, patch_symbol_t

symbol->copy_process = get_symbol_offset_zero(kallsym, img_buf, "copy_process");
symbol->cgroup_post_fork = get_symbol_offset_zero(kallsym, img_buf, "cgroup_post_fork");
if (!symbol->copy_process && symbol->cgroup_post_fork) {
if (!symbol->copy_process && !symbol->cgroup_post_fork) {
symbol->copy_process = find_suffixed_symbol(kallsym, img_buf, "copy_process");
}
if (!symbol->copy_process && symbol->cgroup_post_fork) return -1;
if (!symbol->copy_process && !symbol->cgroup_post_fork) return -1;

symbol->__do_execve_file = get_symbol_offset_zero(kallsym, img_buf, "__do_execve_file");
symbol->do_execveat_common = get_symbol_offset_zero(kallsym, img_buf, "do_execveat_common");
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define MAJOR 0
#define MINOR 8
#define PATCH 1
#define PATCH 2

0 comments on commit ad8fcf5

Please sign in to comment.