diff options
Diffstat (limited to 'security/integrity/ima/ima_crypto.c')
| -rw-r--r-- | security/integrity/ima/ima_crypto.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_crypto.c b/security/integrity/ima/ima_crypto.c index b691e0f3830..a02e0791cf1 100644 --- a/security/integrity/ima/ima_crypto.c +++ b/security/integrity/ima/ima_crypto.c @@ -66,7 +66,7 @@ int ima_calc_file_hash(struct file *file, char *digest)  		file->f_mode |= FMODE_READ;  		read = 1;  	} -	i_size = i_size_read(file->f_dentry->d_inode); +	i_size = i_size_read(file_inode(file));  	while (offset < i_size) {  		int rbuf_len;  |