projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c842128
)
kobject: free memory if netlink_kernel_create() fails
author
Dan Carpenter
<error27@gmail.com>
Tue, 25 May 2010 09:51:10 +0000
(11:51 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 4 Jun 2010 20:27:52 +0000
(13:27 -0700)
There is a kfree(ue_sk) missing on the error path if
netlink_kernel_create() fails.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject_uevent.c
patch
|
blob
|
history
diff --git
a/lib/kobject_uevent.c
b/lib/kobject_uevent.c
index
e2eb989
..
b935795
100644
(file)
--- a/
lib/kobject_uevent.c
+++ b/
lib/kobject_uevent.c
@@
-380,6
+380,7
@@
static int uevent_net_init(struct net *net)
if (!ue_sk->sk) {
printk(KERN_ERR
"kobject_uevent: unable to create netlink socket!\n");
+ kfree(ue_sk);
return -ENODEV;
}
mutex_lock(&uevent_sock_mutex);