]> git.hungrycats.org Git - linux/commitdiff
[PATCH] module symbol fix
authorDavid Mosberger <davidm@napali.hpl.hp.com>
Tue, 15 Apr 2003 15:51:27 +0000 (08:51 -0700)
committerDavid Mosberger <davidm@napali.hpl.hp.com>
Tue, 15 Apr 2003 15:51:27 +0000 (08:51 -0700)
Fix for trivial typo.  Without it, you can't insert anything on top of
agpgart.ko because the agp_register_driver() will erroneously pick up
the symbol version from agp_backend_acquire().

kernel/module.c

index 321c22dc7a51d600a952dc5ccf018d67aa78215a..ccba086ce6bcd9a3311fe4e1699ff4374c83cd6a 100644 (file)
@@ -165,7 +165,7 @@ static unsigned long __find_symbol(const char *name,
                if (gplok) {
                        for (i = 0; i < mod->num_gpl_syms; i++) {
                                if (strcmp(mod->gpl_syms[i].name, name) == 0) {
-                                       *crc = symversion(mod->crcs, i);
+                                       *crc = symversion(mod->gpl_crcs, i);
                                        return mod->gpl_syms[i].value;
                                }
                        }