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/lsm.c | |
parent | 7df818b2370a9aab5fc58a85b70b8af3d835affa (diff) | |
download | lwn-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.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, |