diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2009-04-01 00:24:42 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 17:59:23 +0200 |
commit | 00fcf2cb6f6bb421851c3ba062c0a36760ea6e53 (patch) | |
tree | 741afc144a87af1aa7915d812924da7d7418611f /fs/ecryptfs/keystore.c | |
parent | powerpc/fsl_soc: isolate legacy fsl_spi support to mpc832x_rdb boards (diff) | |
download | linux-00fcf2cb6f6bb421851c3ba062c0a36760ea6e53.tar.xz linux-00fcf2cb6f6bb421851c3ba062c0a36760ea6e53.zip |
ecryptfs: use kzfree()
Use kzfree() instead of memset() + kfree().
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs/keystore.c')
-rw-r--r-- | fs/ecryptfs/keystore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index e4a6223c3145..af737bb56cb7 100644 --- a/fs/ecryptfs/keystore.c +++ b/fs/ecryptfs/keystore.c @@ -740,8 +740,7 @@ ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes, out_release_free_unlock: crypto_free_hash(s->hash_desc.tfm); out_free_unlock: - memset(s->block_aligned_filename, 0, s->block_aligned_filename_size); - kfree(s->block_aligned_filename); + kzfree(s->block_aligned_filename); out_unlock: mutex_unlock(s->tfm_mutex); out: |