Skip to content

Commit

Permalink
fix: kptools, kallsym_num_syms
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Feb 17, 2025
1 parent 871a87a commit 362c0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/kallsym.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ static int find_num_syms(kallsym_t *info, char *img, int32_t imglen)
break;
}

if (info->kallsyms_num_syms_offset) {
if (!info->kallsyms_num_syms_offset || !info->kallsyms_num_syms) {
info->kallsyms_num_syms = approx_num_syms - NSYMS_MAX_GAP;
tools_logw("can't find kallsyms_num_syms, try: 0x%08x\n", info->kallsyms_num_syms);
} else {
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 11
#define PATCH 2
#define PATCH 3

0 comments on commit 362c0b3

Please sign in to comment.