mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 16:49:17 +00:00
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 <tom.leiming@gmail.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c65b9145f4
commit
e0d7bf5d58
@ -225,8 +225,10 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
|
|||||||
}
|
}
|
||||||
|
|
||||||
NETLINK_CB(skb).dst_group = 1;
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user