summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-23 14:21:53 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2011-03-27 04:45:17 +0200
commit6d00376ad15a931d4b148e52d80abc54173e9bf5 (patch)
tree76253cde2005a2048b2e4f77c8c2d536126027b8 /tools
parentcrypto: caam - dereferencing ERR_PTR on allocation failure (diff)
downloadlinux-6d00376ad15a931d4b148e52d80abc54173e9bf5.tar.xz
linux-6d00376ad15a931d4b148e52d80abc54173e9bf5.zip
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions