Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db5ca356 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by James Morris
Browse files

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: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent d4ab4e6a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -143,6 +143,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
			goto out;
			goto out;
		}
		}
		requested_dev_name = tomoyo_realpath_from_path(&path);
		requested_dev_name = tomoyo_realpath_from_path(&path);
		path_put(&path);
		if (!requested_dev_name) {
		if (!requested_dev_name) {
			error = -ENOENT;
			error = -ENOENT;
			goto out;
			goto out;