summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2008-11-16 18:23:27 +0800
committerStephen Rothwell <sfr@canb.auug.org.au>2008-12-03 09:14:23 +1100
commit78ff8a4f9fb70718a9fd68a41c4926c0a47b4ebd (patch)
treec4852262608cb00b848a977a1a816ae27a4a62f4 /lib
parent0c090a33f8f0a1cce28deb0bb06ef0a558c79dfc (diff)
kobject: return the result of uevent sending by netlink
We need to return the result of uevent sending by netlink to caller, when uevent_helper is disabled and CONFIG_NET is defined. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject_uevent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index ca215bc2329a..318328ddbd1c 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -225,8 +225,10 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
}
NETLINK_CB(skb).dst_group = 1;
- netlink_broadcast(uevent_sock, skb, 0, 1, GFP_KERNEL);
- }
+ retval = netlink_broadcast(uevent_sock, skb, 0, 1,
+ GFP_KERNEL);
+ } else
+ retval = -ENOMEM;
}
#endif