summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-aes.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-01-19 02:05:43 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-01-19 08:52:08 +0100
commite31835ad3abc6809703d3bbd2400bdd6285f8fea (patch)
tree18445f043cc407b373748c6d7152d2119c00c369 /drivers/crypto/atmel-aes.c
parentcrypto: algif_skcipher - Fix race condition in skcipher_check_key (diff)
downloadlinux-e31835ad3abc6809703d3bbd2400bdd6285f8fea.tar.xz
linux-e31835ad3abc6809703d3bbd2400bdd6285f8fea.zip
crypto: atmel-aes - Add missing break to atmel_aes_reg_name
The debug function atmel_aes_reg_name was missing a break for AES_GCMHR. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-aes.c')
-rw-r--r--drivers/crypto/atmel-aes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 5621612ee921..6dd3317ca365 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -280,6 +280,7 @@ static const char *atmel_aes_reg_name(u32 offset, char *tmp, size_t sz)
case AES_GCMHR(2):
case AES_GCMHR(3):
snprintf(tmp, sz, "GCMHR[%u]", (offset - AES_GCMHR(0)) >> 2);
+ break;
default:
snprintf(tmp, sz, "0x%02x", offset);