Skip to content

Commit

Permalink
kobject: return the result of uevent sending by netlink
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ming1 authored and gregkh committed Jan 6, 2009
1 parent c65b914 commit e0d7bf5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e0d7bf5

Please sign in to comment.