summaryrefslogtreecommitdiffstats
path: root/arch/s390/crypto
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2009-03-26 15:24:48 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 15:24:29 +0100
commit3e75a902196c45d26d5e28014eb2d9821aa9794f (patch)
treea648c5fe545152a8fecdd0e773453e508082213c /arch/s390/crypto
parent[S390] BUG to BUG_ON changes (diff)
downloadlinux-3e75a902196c45d26d5e28014eb2d9821aa9794f.tar.xz
linux-3e75a902196c45d26d5e28014eb2d9821aa9794f.zip
[S390] use kzfree()
Use kzfree() instead of memset() + kfree(). Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/crypto')
-rw-r--r--arch/s390/crypto/prng.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c
index eca724d229ec..b49c00ce65e9 100644
--- a/arch/s390/crypto/prng.c
+++ b/arch/s390/crypto/prng.c
@@ -201,8 +201,7 @@ out_free:
static void __exit prng_exit(void)
{
/* wipe me */
- memset(p->buf, 0, prng_chunk_size);
- kfree(p->buf);
+ kzfree(p->buf);
kfree(p);
misc_deregister(&prng_dev);