cifs: replace kfree() with kfree_sensitive() for sensitive data
[linux-2.6-microblaze.git] / fs / cifs / misc.c
index 20a112c..72bd1b2 100644 (file)
@@ -1119,7 +1119,7 @@ cifs_alloc_hash(const char *name,
 void
 cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc)
 {
-       kfree(*sdesc);
+       kfree_sensitive(*sdesc);
        *sdesc = NULL;
        if (*shash)
                crypto_free_shash(*shash);