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

Commit 928e1ebf authored by Al Viro's avatar Al Viro
Browse files

apparmor_path_truncate(): path->mnt is never NULL



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7df818b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ static int apparmor_path_truncate(const struct path *path)
				  d_backing_inode(path->dentry)->i_mode
	};

	if (!path->mnt || !mediated_filesystem(path->dentry))
	if (!mediated_filesystem(path->dentry))
		return 0;

	return common_perm(OP_TRUNC, path, MAY_WRITE | AA_MAY_META_WRITE,