public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/6] module: set unused_gpl_crcs instead of overwriting unused_crcs
@ 2008-04-24  5:01 Rusty Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2008-04-24  5:01 UTC (permalink / raw)
  To: linux-kernel


Obvious typo, but I don't know of any modules with unused GPL exports,
and then it would take someone noticing that the version shouldn't
have matched in a dependent module.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 kernel/module.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 257476cdfb79 kernel/module.c
--- a/kernel/module.c	Thu Apr 10 15:15:17 2008 +1000
+++ b/kernel/module.c	Thu Apr 10 15:17:08 2008 +1000
@@ -1997,7 +1997,8 @@ static struct module *load_module(void _
 		mod->unused_crcs = (void *)sechdrs[unusedcrcindex].sh_addr;
 	mod->unused_gpl_syms = (void *)sechdrs[unusedgplindex].sh_addr;
 	if (unusedgplcrcindex)
-		mod->unused_crcs = (void *)sechdrs[unusedgplcrcindex].sh_addr;
+		mod->unused_gpl_crcs
+			= (void *)sechdrs[unusedgplcrcindex].sh_addr;
 
 #ifdef CONFIG_MODVERSIONS
 	if ((mod->num_syms && !crcindex) ||


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-24  5:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24  5:01 [PATCH 4/6] module: set unused_gpl_crcs instead of overwriting unused_crcs Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox