]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/module.c
Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband
[linux-2.6-omap-h63xx.git] / kernel / module.c
index bbe04862e1b09113dd12dd49749f551cd9fbeecf..d75275de1c28dee01633b126185784f3561eb46f 100644 (file)
@@ -1326,7 +1326,7 @@ int is_exported(const char *name, const struct module *mod)
        if (!mod && lookup_symbol(name, __start___ksymtab, __stop___ksymtab))
                return 1;
        else
-               if (lookup_symbol(name, mod->syms, mod->syms + mod->num_syms))
+               if (mod && lookup_symbol(name, mod->syms, mod->syms + mod->num_syms))
                        return 1;
                else
                        return 0;