From: Dan Carpenter Date: Wed, 23 Mar 2011 13:21:53 +0000 (+0800) Subject: crypto: caam - ARRAY_SIZE() vs sizeof() X-Git-Tag: v3.0-rc1~371^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d00376ad15a931d4b148e52d80abc54173e9bf5;p=pandora-kernel.git 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 Acked-by: Kim Phillips Signed-off-by: Herbert Xu --- Reading git-diff-tree failed