[PATCH 1/1] crypto: atmel-aes: fix compiler error when VERBOSE_DEBUG is defined

Subsystems: crypto api, the rest

STALE3580d

2 messages, 2 authors, 2016-10-21 · open the first message on its own page

[PATCH 1/1] crypto: atmel-aes: fix compiler error when VERBOSE_DEBUG is defined

From: Cyrille Pitchen <hidden>
Date: 2016-09-29 16:46:21

This patch fixes a compiler error when VERBOSE_DEBUG is defined. Indeed,
in atmel_aes_write(), the 3rd argument of atmel_aes_reg_name() was
missing.

Signed-off-by: Cyrille Pitchen <redacted>
Reported-by: Levent Demir <redacted>
---
 drivers/crypto/atmel-aes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index e3d40a8dfffb..1d9e7bd3f377 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -317,7 +317,7 @@ static inline void atmel_aes_write(struct atmel_aes_dev *dd,
 		char tmp[16];
 
 		dev_vdbg(dd->dev, "write 0x%08x into %s\n", value,
-			 atmel_aes_reg_name(offset, tmp));
+			 atmel_aes_reg_name(offset, tmp, sizeof(tmp)));
 	}
 #endif /* VERBOSE_DEBUG */
 
-- 
2.7.4

Re: [PATCH 1/1] crypto: atmel-aes: fix compiler error when VERBOSE_DEBUG is defined

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-10-21 03:10:00

On Thu, Sep 29, 2016 at 06:46:57PM +0200, Cyrille Pitchen wrote:
This patch fixes a compiler error when VERBOSE_DEBUG is defined. Indeed,
in atmel_aes_write(), the 3rd argument of atmel_aes_reg_name() was
missing.

Signed-off-by: Cyrille Pitchen <redacted>
Reported-by: Levent Demir <redacted>
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help