mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 13:36:45 +07:00
de2954d664
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>
12 lines
257 B
C
12 lines
257 B
C
/*
|
|
* CAAM Error Reporting code header
|
|
*
|
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#ifndef CAAM_ERROR_H
|
|
#define CAAM_ERROR_H
|
|
#define CAAM_ERROR_STR_MAX 302
|
|
extern char *caam_jr_strstatus(char *outstr, u32 status);
|
|
#endif /* CAAM_ERROR_H */
|