Skip to content

Commit 491337a

Browse files
authored
Merge pull request #1462 from xieyuanbin1-huawei/master
lookup: fix local bind check
2 parents 732fdd2 + 0f0294a commit 491337a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kpatch-build/lookup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static bool file_has_locals(struct symbol *file_sym, struct list_head *sym_list)
172172
list_for_each_entry_continue(sym, sym_list, list) {
173173
if (sym->type == STT_FILE)
174174
break;
175-
if (sym->type != STB_LOCAL)
175+
if (sym->bind != STB_LOCAL)
176176
continue;
177177
if (maybe_discarded_sym(sym->name))
178178
continue;

0 commit comments

Comments
 (0)