security: fix error return path in ima_inode_alloc

If radix_tree_preload is failed in ima_inode_alloc, we don't need
radix_tree_preload_end because kernel is alread preempt enabled

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>

authored by Xiaotian Feng and committed by James Morris baac35c4 60b341b7

+1 -2
+1 -2
security/integrity/ima/ima_iint.c
··· 63 63 spin_lock(&ima_iint_lock); 64 64 rc = radix_tree_insert(&ima_iint_store, (unsigned long)inode, iint); 65 65 spin_unlock(&ima_iint_lock); 66 + radix_tree_preload_end(); 66 67 out: 67 68 if (rc < 0) 68 69 kmem_cache_free(iint_cache, iint); 69 - 70 - radix_tree_preload_end(); 71 70 72 71 return rc; 73 72 }