aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/integrity/ima/ima_main.c')
-rw-r--r--security/integrity/ima/ima_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c
index b85e61bcf246..96fafc01e2c7 100644
--- a/security/integrity/ima/ima_main.c
+++ b/security/integrity/ima/ima_main.c
@@ -161,7 +161,7 @@ int ima_path_check(struct path *path, int mask, int update_counts)
161 161
162 if (!ima_initialized || !S_ISREG(inode->i_mode)) 162 if (!ima_initialized || !S_ISREG(inode->i_mode))
163 return 0; 163 return 0;
164 iint = ima_iint_find_insert_get(inode); 164 iint = ima_iint_find_get(inode);
165 if (!iint) 165 if (!iint)
166 return 0; 166 return 0;
167 167
@@ -219,7 +219,7 @@ static int process_measurement(struct file *file, const unsigned char *filename,
219 219
220 if (!ima_initialized || !S_ISREG(inode->i_mode)) 220 if (!ima_initialized || !S_ISREG(inode->i_mode))
221 return 0; 221 return 0;
222 iint = ima_iint_find_insert_get(inode); 222 iint = ima_iint_find_get(inode);
223 if (!iint) 223 if (!iint)
224 return -ENOMEM; 224 return -ENOMEM;
225 225
@@ -255,7 +255,7 @@ void ima_counts_put(struct path *path, int mask)
255 */ 255 */
256 if (!ima_initialized || !inode || !S_ISREG(inode->i_mode)) 256 if (!ima_initialized || !inode || !S_ISREG(inode->i_mode))
257 return; 257 return;
258 iint = ima_iint_find_insert_get(inode); 258 iint = ima_iint_find_get(inode);
259 if (!iint) 259 if (!iint)
260 return; 260 return;
261 261
@@ -286,7 +286,7 @@ void ima_counts_get(struct file *file)
286 286
287 if (!ima_initialized || !S_ISREG(inode->i_mode)) 287 if (!ima_initialized || !S_ISREG(inode->i_mode))
288 return; 288 return;
289 iint = ima_iint_find_insert_get(inode); 289 iint = ima_iint_find_get(inode);
290 if (!iint) 290 if (!iint)
291 return; 291 return;
292 mutex_lock(&iint->mutex); 292 mutex_lock(&iint->mutex);