summaryrefslogtreecommitdiff
path: root/security/integrity
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-03-22 16:05:42 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2010-03-22 16:05:42 +1100
commit854cef11e9487f1a82a66804b00a673ee6d57fe3 (patch)
tree9dfa79458b8d8eb5aacb8c1f6fbebb0cfd1ba8c8 /security/integrity
parent01c9931a25e493fc4a3b634657081866035fbac7 (diff)
parent76b5efb35f163567d24cb05cfc4be5d1cb90008e (diff)
Merge branch 'quilt/driver-core'
Diffstat (limited to 'security/integrity')
-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 6cc22430cb44..01ddf314601e 100644
--- a/security/integrity/ima/ima_iint.c
+++ b/security/integrity/ima/ima_iint.c
@@ -93,7 +93,7 @@ void iint_free(struct kref *kref)
iint->opencount);
iint->opencount = 0;
}
- kref_set(&iint->refcount, 1);
+ kref_init(&iint->refcount);
kmem_cache_free(iint_cache, iint);
}
@@ -132,7 +132,7 @@ static void init_once(void *foo)
iint->readcount = 0;
iint->writecount = 0;
iint->opencount = 0;
- kref_set(&iint->refcount, 1);
+ kref_init(&iint->refcount);
}
static int __init ima_iintcache_init(void)