Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280056
b: refs/heads/master
c: 74099b1
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent dab8852 commit f666dc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf6a2eacbcb2593b5b91d0817915c4f0464bb534
refs/heads/master: 74099b18b8db0670484e0caeb3425fb29ff3144e
3 changes: 3 additions & 0 deletions trunk/lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
struct sk_buff *skb;
size_t len;

if (!netlink_has_listeners(uevent_sock, 1))
continue;

/* allocate message with the maximum possible size */
len = strlen(action_string) + strlen(devpath) + 2;
skb = alloc_skb(len + env->buflen, GFP_KERNEL);
Expand Down

0 comments on commit f666dc8

Please sign in to comment.