mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kobject: return the result of uevent sending by netlink
@ 2008-11-16 10:23 tom.leiming
  0 siblings, 0 replies; only message in thread
From: tom.leiming @ 2008-11-16 10:23 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel, Ming Lei

From: Ming Lei <tom.leiming@gmail.com>

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>
---
 lib/kobject_uevent.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 3f91472..c1919d5 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
 
-- 
1.6.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-16 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-16 10:23 [PATCH] kobject: return the result of uevent sending by netlink tom.leiming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome