mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
apparmor_path_truncate(): path->mnt is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7df818b237
commit
928e1ebfb5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user