From: Mark Huang Date: Thu, 27 Jul 2006 22:04:27 +0000 (+0000) Subject: Initialize module_subsys earlier (or at least earlier than devices) X-Git-Tag: before-fedora-2_6_18-1_2239_FC5-vs2_0_2_2-rc6-merge~33 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7ec67d3aacc775724107103b903f50cf5dacbe0a;p=linux-2.6.git Initialize module_subsys earlier (or at least earlier than devices) since it could be used very early in the boot process if kmod loads a module before the device initcalls. Otherwise, kmod will crash in kernel/module.c:mod_sysfs_setup() since the kset in module_subsys is not initialized yet. --- diff --git a/kernel/params.c b/kernel/params.c index af43ecdc8..c67011b26 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -691,7 +691,7 @@ static int __init param_sysfs_init(void) return 0; } -__initcall(param_sysfs_init); +subsys_initcall(param_sysfs_init); EXPORT_SYMBOL(param_set_byte); EXPORT_SYMBOL(param_get_byte);