summaryrefslogtreecommitdiffstats
path: root/security/tomoyo
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-04-19 23:49:15 +0200
committerJames Morris <jmorris@namei.org>2011-04-20 02:16:21 +0200
commitdb5ca356d8af8e43832c185ceec90850ff2ebb45 (patch)
treef079addde0b6a8e5a883b5d2f1363496f6511f32 /security/tomoyo
parentMerge branch 'master'; commit 'v2.6.39-rc3' into next (diff)
downloadlinux-db5ca356d8af8e43832c185ceec90850ff2ebb45.tar.xz
linux-db5ca356d8af8e43832c185ceec90850ff2ebb45.zip
TOMOYO: Fix refcount leak in tomoyo_mount_acl().
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>
Diffstat (limited to 'security/tomoyo')
-rw-r--r--security/tomoyo/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
index 82bf8c2390bc..162a864dba24 100644
--- 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;