aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobert Love <rml@novell.com>2004-11-03 20:00:12 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-11-03 20:00:12 -0800
commit7371f3e13c81d7d991e2911d5355ece93f7aced6 (patch)
treecfc0aed938dab49151e3a3491026f8bafce5cafc /lib
parent07b8bb0fb7b0a3184b348caa8ddbf96c2cef44c4 (diff)
downloadhistory-7371f3e13c81d7d991e2911d5355ece93f7aced6.tar.gz
[PATCH] kobject_uevent: fix init ordering
Looks like kobject_uevent_init is executed before netlink_proto_init and consequently always fails. Not cool. Attached patch switches the initialization over from core_initcall (init level 1) to postcore_initcall (init level 2). Netlink's initialization is done in core_initcall, so this should fix the problem. We should be fine waiting until postcore_initcall. Also a couple white space changes mixed in, because I am anal. Signed-Off-By: Robert Love <rml@novell.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject_uevent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 2028b3b747e797..78a6e026c29891 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -120,9 +120,8 @@ static int do_kobject_uevent(struct kobject *kobj, enum kobject_action action,
sprintf(attrpath, "%s/%s", path, attr->name);
rc = send_uevent(signal, attrpath, NULL, gfp_mask);
kfree(attrpath);
- } else {
+ } else
rc = send_uevent(signal, path, NULL, gfp_mask);
- }
exit:
kfree(path);
@@ -148,7 +147,6 @@ int kobject_uevent_atomic(struct kobject *kobj, enum kobject_action action,
{
return do_kobject_uevent(kobj, action, attr, GFP_ATOMIC);
}
-
EXPORT_SYMBOL_GPL(kobject_uevent_atomic);
static int __init kobject_uevent_init(void)
@@ -164,7 +162,7 @@ static int __init kobject_uevent_init(void)
return 0;
}
-core_initcall(kobject_uevent_init);
+postcore_initcall(kobject_uevent_init);
#else
static inline int send_uevent(const char *signal, const char *obj,