linux/drivers/crypto/caam
Kim Phillips de2954d664 crypto: caam - fix printk recursion for long error texts
during recent descriptor development, an Invalid Sequence Command
error triggered a:

BUG: recent printk recursion!

due to insufficient memory allocated for the error text.

The Invalid Sequence Command error text is the longest.
The length of the maximum error string is computed as
the sum of:

"DECO: ": 6
"jump tgt desc idx 255: ": 23
Invalid Sequence Command text: 272
zero termination character: 1

i.e, 302 characters.

Define this maximum error string length in error.h and fix
caam_jr_strstatus callsites.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2011-05-04 15:15:06 +10:00
..
caamalg.c crypto: caam - fix printk recursion for long error texts 2011-05-04 15:15:06 +10:00
compat.h
ctrl.c crypto: caam - standardize device tree naming convention to utilize '-vX.Y' 2011-03-27 10:45:17 +08:00
desc_constr.h
desc.h
error.c crypto: caam - ARRAY_SIZE() vs sizeof() 2011-03-27 10:45:17 +08:00
error.h crypto: caam - fix printk recursion for long error texts 2011-05-04 15:15:06 +10:00
intern.h
jr.c crypto: caam - handle interrupt lines shared across rings 2011-05-03 09:53:31 +10:00
jr.h
Kconfig
Makefile
regs.h crypto: caam - fix queue interface detection 2011-05-03 09:53:35 +10:00