[PATCH] kobject_uevent: Use the netlink allocator helper...
Eric W. Biederman
ebiederm at xmission.com
Mon Mar 8 09:25:20 PST 2010
Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
lib/kobject_uevent.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 920a3ca..b8229cc 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -216,7 +216,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
/* allocate message with the maximum possible size */
len = strlen(action_string) + strlen(devpath) + 2;
- skb = alloc_skb(len + env->buflen, GFP_KERNEL);
+ skb = nlmsg_new(len + env->buflen, GFP_KERNEL);
if (skb) {
char *scratch;
--
1.6.5.2.143.g8cc62
More information about the Containers
mailing list