]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - security/integrity/ima/ima_iint.c
kref: remove kref_set
[mv-sheeva.git] / security / integrity / ima / ima_iint.c
index 2dc2d6594145473ddf31020865041777e1fa8c6f..7625b85c2274f457fc0d260a21e2d9039758d12c 100644 (file)
@@ -94,7 +94,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);
 }
 
@@ -133,7 +133,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)