diff options
author | Milan Broz <mbroz@redhat.com> | 2011-08-22 15:51:34 +0200 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-08-17 15:35:32 -0400 |
commit | c00a5101310a35a34f9c23bd9c9cda2187005abd (patch) | |
tree | 85683dc5c0a72d8dda234e07811c03bb20a5cab9 | |
parent | 5ffddeb2125e7d45779724a1b0823a8ea9307f4e (diff) |
kobj_uevent: Ignore if some listeners cannot handle message
commit ebf4127cd677e9781b450e44dfaaa1cc595efcaa upstream.
kobject_uevent() uses a multicast socket and should ignore
if one of listeners cannot handle messages or nobody is
listening at all.
Easily reproducible when a process in system is cloned
with CLONE_NEWNET flag.
(See also http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5256)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Acked-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | lib/kobject_uevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 7b48d44ced6e..0273ead9c77e 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -236,7 +236,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, retval = netlink_broadcast(uevent_sock, skb, 0, 1, GFP_KERNEL); /* ENOBUFS should be handled in userspace */ - if (retval == -ENOBUFS) + if (retval == -ENOBUFS || retval == -ESRCH) retval = 0; } else retval = -ENOMEM; |