diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 14:24:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:23 -0400 |
commit | 928e1ebfb576f6c0480ac852becfc142b248242c (patch) | |
tree | c3daac7bf766902d810d0f3a86d3e544c7d70720 /security/apparmor | |
parent | 7df818b2370a9aab5fc58a85b70b8af3d835affa (diff) | |
download | op-kernel-dev-928e1ebfb576f6c0480ac852becfc142b248242c.zip op-kernel-dev-928e1ebfb576f6c0480ac852becfc142b248242c.tar.gz |
apparmor_path_truncate(): path->mnt is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 83e9c3c..21dae60 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, |