diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index ca215bc2329a6fdf38fe901808f6cb013f26fddd..318328ddbd1cf57b89cc84dc63b2818b480231d9 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