From: Ming Lei Date: Sun, 16 Nov 2008 10:23:27 +0000 (+0800) Subject: kobject: return the result of uevent sending by netlink X-Git-Tag: v2.6.29-rc1~229^2~52 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e0d7bf5d580c20ff14d0200b6ab47bc77f99b152;p=linux-2.6-omap-h63xx.git 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 Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index ca215bc2329..318328ddbd1 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