OSDN Git Service

crypto: zip - Memory corruption in zip_clear_stats()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Mar 2017 20:46:21 +0000 (23:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Mar 2017 14:03:00 +0000 (22:03 +0800)
commit0d13d8f26c4684a077b293b8a4615170253f842c
tree2976923f49f7c31f6fd3da08d5ce6bb651a060e2
parent106d73340f46538d29547ac06271f55de0f4d14e
crypto: zip - Memory corruption in zip_clear_stats()

There is a typo here.  It should be "stats" instead of "state".  The
impact is that we clear 224 bytes instead of 80 and we zero out memory
that we shouldn't.

Fixes: 09ae5d37e093 ("crypto: zip - Add Compression/Decompression statistics")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c