aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/integrity/ima/ima_iint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima_iint.c b/security/integrity/ima/ima_iint.c
index 2dc2d659414..7625b85c227 100644
--- a/security/integrity/ima/ima_iint.c
+++ b/security/integrity/ima/ima_iint.c
@@ -94,7 +94,7 @@ void iint_free(struct kref *kref)
94 iint->opencount); 94 iint->opencount);
95 iint->opencount = 0; 95 iint->opencount = 0;
96 } 96 }
97 kref_set(&iint->refcount, 1); 97 kref_init(&iint->refcount);
98 kmem_cache_free(iint_cache, iint); 98 kmem_cache_free(iint_cache, iint);
99} 99}
100 100
@@ -133,7 +133,7 @@ static void init_once(void *foo)
133 iint->readcount = 0; 133 iint->readcount = 0;
134 iint->writecount = 0; 134 iint->writecount = 0;
135 iint->opencount = 0; 135 iint->opencount = 0;
136 kref_set(&iint->refcount, 1); 136 kref_init(&iint->refcount);
137} 137}
138 138
139static int __init ima_iintcache_init(void) 139static int __init ima_iintcache_init(void)