From: Tetsuo Handa Date: Tue, 19 Apr 2011 21:49:15 +0000 (+0900) Subject: TOMOYO: Fix refcount leak in tomoyo_mount_acl(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db5ca356d8af8e43832c185ceec90850ff2ebb45;p=linux-beck.git 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 Signed-off-by: James Morris --- 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;