]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - security/integrity/evm/evm_crypto.c
VFS: security/: d_backing_inode() annotations
[mirror_ubuntu-hirsute-kernel.git] / security / integrity / evm / evm_crypto.c
index 5e9687f02e1b14e56e56d3a303afbef23ea79dca..159ef3ea41308dbb2ef44e2c491d44083c27d72f 100644 (file)
@@ -131,7 +131,7 @@ static int evm_calc_hmac_or_hash(struct dentry *dentry,
                                size_t req_xattr_value_len,
                                char type, char *digest)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = d_backing_inode(dentry);
        struct shash_desc *desc;
        char **xattrname;
        size_t xattr_size = 0;
@@ -199,7 +199,7 @@ int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
 int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name,
                        const char *xattr_value, size_t xattr_value_len)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = d_backing_inode(dentry);
        struct evm_ima_xattr_data xattr_data;
        int rc = 0;