public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* obsolete modparam change busted.
@ 2005-08-08 18:49 Dave Jones
  2005-08-09  4:01 ` Rusty Russell
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Jones @ 2005-08-08 18:49 UTC (permalink / raw)
  To: Rusty Russell; +Cc: Andrew Morton, linux-kernel

Circa 2.6.10, the module loader started barfing if
modprobe.conf contained obsolete parameters.

However this change was broken, and if the modprobe.conf
has trailing whitespace, modules fail to load with the
following helpful message..

snd_intel8x0: Unknown parameter `'

This ends up screwing over people who upgrade from previously
working configurations, so we've been backing out that change
in Fedora for a while with the patch below.

It doesn't look like the right thing to do, but it has got
things working again at least. Probably we should just check
explicity for whitespace and ignore it somewhere else in
the module loader.  Rusty?

		Dave


diff -urNp --exclude-from=/home/davej/.exclude linux-1503/kernel/module.c linux-1700/kernel/module.c
--- linux-1503/kernel/module.c
+++ linux-1700/kernel/module.c
@@ -1707,8 +1707,6 @@ static struct module *load_module(void _
 				 / sizeof(struct kernel_param),
 				 NULL);
 	}
-	if (err < 0)
-		goto arch_cleanup;
 
 	err = mod_sysfs_setup(mod, 
 			      (struct kernel_param *)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-16  5:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 18:49 obsolete modparam change busted Dave Jones
2005-08-09  4:01 ` Rusty Russell
2005-08-13 18:27   ` Dave Jones
2005-08-16  4:39     ` Rusty Russell
2005-08-16  5:16       ` Dave Jones

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