diff options
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 6 | ||||
-rw-r--r-- | drivers/crypto/caam/error.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 5c16019cf306..b97575e414f6 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c | |||
@@ -113,7 +113,7 @@ static void split_key_done(struct device *dev, u32 *desc, u32 err, | |||
113 | dev_err(dev, "%s %d: err 0x%x\n", __func__, __LINE__, err); | 113 | dev_err(dev, "%s %d: err 0x%x\n", __func__, __LINE__, err); |
114 | #endif | 114 | #endif |
115 | if (err) { | 115 | if (err) { |
116 | char tmp[256]; | 116 | char tmp[CAAM_ERROR_STR_MAX]; |
117 | 117 | ||
118 | dev_err(dev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); | 118 | dev_err(dev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); |
119 | } | 119 | } |
@@ -414,7 +414,7 @@ static void ipsec_esp_encrypt_done(struct device *jrdev, u32 *desc, u32 err, | |||
414 | offsetof(struct ipsec_esp_edesc, hw_desc)); | 414 | offsetof(struct ipsec_esp_edesc, hw_desc)); |
415 | 415 | ||
416 | if (err) { | 416 | if (err) { |
417 | char tmp[256]; | 417 | char tmp[CAAM_ERROR_STR_MAX]; |
418 | 418 | ||
419 | dev_err(jrdev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); | 419 | dev_err(jrdev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); |
420 | } | 420 | } |
@@ -454,7 +454,7 @@ static void ipsec_esp_decrypt_done(struct device *jrdev, u32 *desc, u32 err, | |||
454 | offsetof(struct ipsec_esp_edesc, hw_desc)); | 454 | offsetof(struct ipsec_esp_edesc, hw_desc)); |
455 | 455 | ||
456 | if (err) { | 456 | if (err) { |
457 | char tmp[256]; | 457 | char tmp[CAAM_ERROR_STR_MAX]; |
458 | 458 | ||
459 | dev_err(jrdev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); | 459 | dev_err(jrdev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err)); |
460 | } | 460 | } |
diff --git a/drivers/crypto/caam/error.h b/drivers/crypto/caam/error.h index 067afc120132..02c7baa1748e 100644 --- a/drivers/crypto/caam/error.h +++ b/drivers/crypto/caam/error.h | |||
@@ -6,5 +6,6 @@ | |||
6 | 6 | ||
7 | #ifndef CAAM_ERROR_H | 7 | #ifndef CAAM_ERROR_H |
8 | #define CAAM_ERROR_H | 8 | #define CAAM_ERROR_H |
9 | #define CAAM_ERROR_STR_MAX 302 | ||
9 | extern char *caam_jr_strstatus(char *outstr, u32 status); | 10 | extern char *caam_jr_strstatus(char *outstr, u32 status); |
10 | #endif /* CAAM_ERROR_H */ | 11 | #endif /* CAAM_ERROR_H */ |