diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject_uevent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 1a91efa6d121..0401d2916d9f 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c | |||
@@ -373,13 +373,16 @@ EXPORT_SYMBOL_GPL(add_uevent_var); | |||
373 | static int uevent_net_init(struct net *net) | 373 | static int uevent_net_init(struct net *net) |
374 | { | 374 | { |
375 | struct uevent_sock *ue_sk; | 375 | struct uevent_sock *ue_sk; |
376 | struct netlink_kernel_cfg cfg = { | ||
377 | .groups = 1, | ||
378 | }; | ||
376 | 379 | ||
377 | ue_sk = kzalloc(sizeof(*ue_sk), GFP_KERNEL); | 380 | ue_sk = kzalloc(sizeof(*ue_sk), GFP_KERNEL); |
378 | if (!ue_sk) | 381 | if (!ue_sk) |
379 | return -ENOMEM; | 382 | return -ENOMEM; |
380 | 383 | ||
381 | ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, | 384 | ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, |
382 | 1, NULL, NULL, THIS_MODULE); | 385 | THIS_MODULE, &cfg); |
383 | if (!ue_sk->sk) { | 386 | if (!ue_sk->sk) { |
384 | printk(KERN_ERR | 387 | printk(KERN_ERR |
385 | "kobject_uevent: unable to create netlink socket!\n"); | 388 | "kobject_uevent: unable to create netlink socket!\n"); |