diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2017-10-06 15:04:45 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-12 22:55:27 +0800 |
commit | e4a647c49c581e877001676e658a8dab82a15967 (patch) | |
tree | 0f688041532733481a22b800f2b345642ce880c7 /mm/kmemleak-test.c | |
parent | 70d355ccea899dad47dc22d3a4406998f55143fd (diff) |
crypto: talitos - zeroize the descriptor with memset()
This patch zeroize the descriptor at allocation using memset().
This has two advantages:
- It reduces the number of places where data has to be set to 0
- It avoids reading memory and loading the cache with data that
will be entirely replaced.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm/kmemleak-test.c')
0 files changed, 0 insertions, 0 deletions