aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/file2alias.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 056de3104e75..5759751a1f61 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -1103,6 +1103,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
1103 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) 1103 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)
1104 return; 1104 return;
1105 1105
1106 /* We're looking for an object */
1107 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT)
1108 return;
1109
1106 /* All our symbols are of form <prefix>__mod_XXX_device_table. */ 1110 /* All our symbols are of form <prefix>__mod_XXX_device_table. */
1107 name = strstr(symname, "__mod_"); 1111 name = strstr(symname, "__mod_");
1108 if (!name) 1112 if (!name)