From: Al Viro Date: Fri, 25 Mar 2016 18:24:49 +0000 (-0400) Subject: apparmor_path_truncate(): path->mnt is never NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=928e1ebfb576f6c0480ac852becfc142b248242c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git apparmor_path_truncate(): path->mnt is never NULL Signed-off-by: Al Viro --- 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,