Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: omap-aes - avoid spamming console with self tests

Running the self test suite for omap-aes with extra tests enabled causes
huge spam with the tag message wrong indicators. With self tests, this
is fine as there are some tests that purposedly pass bad data to the
driver. Also, returning -EBADMSG from the driver is enough, so remove the
dev_err message completely.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tero Kristo and committed by
Herbert Xu
b29cb8d6 58ca0060

-1
-1
drivers/crypto/omap-aes-gcm.c
··· 77 77 tag = (u8 *)rctx->auth_tag; 78 78 for (i = 0; i < dd->authsize; i++) { 79 79 if (tag[i]) { 80 - dev_err(dd->dev, "GCM decryption: Tag Message is wrong\n"); 81 80 ret = -EBADMSG; 82 81 } 83 82 }