[BusyBox] Patches from PLD Linux

Jean Wolter jean.wolter at inf.tu-dresden.de
Sat Aug 30 19:04:52 UTC 2003


Glenn McGrath <bug1 at optushome.com.au> writes:

> Arkadiusz Patyk <areq at areq.eu.org> wrote:
> 
> > Support for loading GPL_ modules
> > http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/busybox-insmod-gpl.patch
> 
> Applied a variant of this.

Could you apply the following patch? insmod caches the symbolname in
a variable before modifying it and uses the cached value
afterwards.

--- insmod.c	30 Aug 2003 14:27:29 -0000	1.2
+++ insmod.c	30 Aug 2003 18:56:57 -0000	1.3
@@ -1942,7 +1942,7 @@
 		   argument initialization.  We will also create a false
 		   dependency on the module.  */
 		struct obj_symbol *sym;
-		char *name = (char *)s->name;
+		char *name;
 
 		/* GPL licensed modules can use symbols exported with
 		 * EXPORT_SYMBOL_GPL, so ignore any GPLONLY_ prefix on the
@@ -1957,6 +1957,7 @@
 				continue;
 		}
 
+		name = (char *)s->name;
 #ifdef SYMBOL_PREFIX
 		/* Prepend SYMBOL_PREFIX to the symbol's name (the
 		   kernel exports `C names', but module object files

regards,
Jean



More information about the busybox mailing list