summaryrefslogtreecommitdiff
path: root/security/apparmor/lsm.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-25 14:24:49 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 00:47:23 -0400
commit928e1ebfb576f6c0480ac852becfc142b248242c (patch)
treec3daac7bf766902d810d0f3a86d3e544c7d70720 /security/apparmor/lsm.c
parent7df818b2370a9aab5fc58a85b70b8af3d835affa (diff)
downloadlwn-928e1ebfb576f6c0480ac852becfc142b248242c.tar.gz
lwn-928e1ebfb576f6c0480ac852becfc142b248242c.zip
apparmor_path_truncate(): path->mnt is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor/lsm.c')
-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,