Skip to content

Commit aaaebaf

Browse files
authored
Merge pull request #1249 from sm00th/locals_match_fix
Fix sym->type condition in locals_match()
2 parents 1d4b3c2 + 4d8c810 commit aaaebaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kpatch-build/lookup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static bool locals_match(struct lookup_table *table, int idx,
131131
break;
132132
if (sym->bind != STB_LOCAL)
133133
continue;
134-
if (sym->type != STT_FUNC && table_sym->type != STT_OBJECT)
134+
if (sym->type != STT_FUNC && sym->type != STT_OBJECT)
135135
continue;
136136
/*
137137
* Symbols which get discarded at link time are missing from

0 commit comments

Comments
 (0)