crypto: caam - ARRAY_SIZE() vs sizeof()
commit6d00376ad15a931d4b148e52d80abc54173e9bf5
authorDan Carpenter <error27@gmail.com>
Wed, 23 Mar 2011 13:21:53 +0000 (23 21:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 27 Mar 2011 02:45:17 +0000 (27 10:45 +0800)
tree76253cde2005a2048b2e4f77c8c2d536126027b8
parentcdc712d884cec0354d6899e7a329eee542ca2f7d
crypto: caam - ARRAY_SIZE() vs sizeof()

ARRAY_SIZE() was intended here instead of sizeof().  sizeof() is four
times larger than ARRAY_SIZE().  outstr is normally 256 chars so
printing garbage to it could overfill the buffer and corrupt memory.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/error.c