diff options
Diffstat (limited to 'security')
| -rw-r--r-- | security/integrity/ima/ima_iint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_iint.c b/security/integrity/ima/ima_iint.c index 1f035e8d29c7..ec79f1ee992c 100644 --- a/security/integrity/ima/ima_iint.c +++ b/security/integrity/ima/ima_iint.c | |||
| @@ -73,8 +73,10 @@ out: | |||
| 73 | if (rc < 0) { | 73 | if (rc < 0) { |
| 74 | kmem_cache_free(iint_cache, iint); | 74 | kmem_cache_free(iint_cache, iint); |
| 75 | if (rc == -EEXIST) { | 75 | if (rc == -EEXIST) { |
| 76 | spin_lock(&ima_iint_lock); | ||
| 76 | iint = radix_tree_lookup(&ima_iint_store, | 77 | iint = radix_tree_lookup(&ima_iint_store, |
| 77 | (unsigned long)inode); | 78 | (unsigned long)inode); |
| 79 | spin_unlock(&ima_iint_lock); | ||
| 78 | } else | 80 | } else |
| 79 | iint = NULL; | 81 | iint = NULL; |
| 80 | } | 82 | } |
