diff options
Diffstat (limited to 'fs/crypto/hooks.c')
-rw-r--r-- | fs/crypto/hooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/crypto/hooks.c b/fs/crypto/hooks.c index c1d6715d88e9..bb3b7fcfdd48 100644 --- a/fs/crypto/hooks.c +++ b/fs/crypto/hooks.c | |||
@@ -39,9 +39,9 @@ int fscrypt_file_open(struct inode *inode, struct file *filp) | |||
39 | dir = dget_parent(file_dentry(filp)); | 39 | dir = dget_parent(file_dentry(filp)); |
40 | if (IS_ENCRYPTED(d_inode(dir)) && | 40 | if (IS_ENCRYPTED(d_inode(dir)) && |
41 | !fscrypt_has_permitted_context(d_inode(dir), inode)) { | 41 | !fscrypt_has_permitted_context(d_inode(dir), inode)) { |
42 | fscrypt_warn(inode->i_sb, | 42 | fscrypt_warn(inode, |
43 | "inconsistent encryption contexts: %lu/%lu", | 43 | "Inconsistent encryption context (parent directory: %lu)", |
44 | d_inode(dir)->i_ino, inode->i_ino); | 44 | d_inode(dir)->i_ino); |
45 | err = -EPERM; | 45 | err = -EPERM; |
46 | } | 46 | } |
47 | dput(dir); | 47 | dput(dir); |