summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 19:24:49 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 06:47:23 +0200
commit928e1ebfb576f6c0480ac852becfc142b248242c (patch)
treec3daac7bf766902d810d0f3a86d3e544c7d70720 /security
parentconstify vfs_truncate() (diff)
downloadlinux-928e1ebfb576f6c0480ac852becfc142b248242c.tar.xz
linux-928e1ebfb576f6c0480ac852becfc142b248242c.zip
apparmor_path_truncate(): path->mnt is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index 83e9c3c2cfc8..21dae6070bb9 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -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,