aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorTony Zelenoff <antonz@parallels.com>2012-04-13 06:09:53 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-15 13:00:12 -0400
commit2a9bc71e9a1a099e1aab745f1755a3c15a745ad8 (patch)
tree3c73cc2b377b4c97b972ea91703f78f32266f176 /scripts/mod/file2alias.c
parentatl1: enable errors and link ints when rx/tx scheduled (diff)
downloadlinux-dev-2a9bc71e9a1a099e1aab745f1755a3c15a745ad8.tar.xz
linux-dev-2a9bc71e9a1a099e1aab745f1755a3c15a745ad8.zip
atl1: do not process interrupts in cycle in handler
As the rx/tx handled inside napi handler, the cycle is not needed now, because only the rx/tx need such kind of processing. Signed-off-by: Tony Zelenoff <antonz@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-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 8e730ccc3f2b..44ddaa542db6 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -1100,6 +1100,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)
return;
+ /* We're looking for an object */
+ if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT)
+ return;
+
/* All our symbols are of form <prefix>__mod_XXX_device_table. */
name = strstr(symname, "__mod_");
if (!name)