From 7ec67d3aacc775724107103b903f50cf5dacbe0a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 27 Jul 2006 22:04:27 +0000 Subject: [PATCH] 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. --- kernel/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.0