]> Pileus Git - ~andy/linux/blobdiff - kernel/module.c
IRQ: Typedef the IRQ flow handler function type
[~andy/linux] / kernel / module.c
index 7c77a0a9275ceddce4723f12b580345b1352158b..7f60e782de1e49fdfbcc96374e39898920cea94a 100644 (file)
@@ -2040,7 +2040,8 @@ const char *module_address_lookup(unsigned long addr,
        list_for_each_entry(mod, &modules, list) {
                if (within(addr, mod->module_init, mod->init_size)
                    || within(addr, mod->module_core, mod->core_size)) {
-                       *modname = mod->name;
+                       if (modname)
+                               *modname = mod->name;
                        return get_ksymbol(mod, addr, size, offset);
                }
        }