projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ab4e6
)
TOMOYO: Fix refcount leak in tomoyo_mount_acl().
author
Tetsuo Handa
<penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 19 Apr 2011 21:49:15 +0000
(06:49 +0900)
committer
James Morris
<jmorris@namei.org>
Wed, 20 Apr 2011 00:16:21 +0000
(10:16 +1000)
In tomoyo_mount_acl() since 2.6.36, reference to device file (e.g. /dev/sda1)
was leaking.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/mount.c
patch
|
blob
|
history
diff --git
a/security/tomoyo/mount.c
b/security/tomoyo/mount.c
index
82bf8c2
..
162a864
100644
(file)
--- a/
security/tomoyo/mount.c
+++ b/
security/tomoyo/mount.c
@@
-143,6
+143,7
@@
static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
goto out;
}
requested_dev_name = tomoyo_realpath_from_path(&path);
+ path_put(&path);
if (!requested_dev_name) {
error = -ENOENT;
goto out;