diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 19:24:49 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 06:47:23 +0200 |
commit | 928e1ebfb576f6c0480ac852becfc142b248242c (patch) | |
tree | c3daac7bf766902d810d0f3a86d3e544c7d70720 /security | |
parent | constify vfs_truncate() (diff) | |
download | linux-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.c | 2 |
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, |