Skip to content

Commit 4d8c810

Browse files
committed
Fix sym->type condition in locals_match()
Second loop in locals_match() checks table_sym->type instead of sym->type. Fixes: 7207687 Switch to per-file lookup table pointers. Signed-off-by: Artem Savkov <asavkov@redhat.com>
1 parent aa33ee7 commit 4d8c810

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)