summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-crypto-aes-cmac.c
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2013-12-10 10:38:44 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2013-12-20 20:06:22 +0800
commit369f3dabad95aaa3b04ec390d5489d9d46e51395 (patch)
tree494d90d88310fe987d9ae659f4697962557a3525 /drivers/crypto/ccp/ccp-crypto-aes-cmac.c
parentd5aa80952aba9071b50a74c8daf7feb1caa2fd8c (diff)
crypto: ccp - Remove user triggerable pr_err calls
Remove the pr_err calls that are issued during parameter checking in some AES operations. This will eliminate the possibility of filling up syslog through these paths. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-crypto-aes-cmac.c')
-rw-r--r--drivers/crypto/ccp/ccp-crypto-aes-cmac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/ccp/ccp-crypto-aes-cmac.c b/drivers/crypto/ccp/ccp-crypto-aes-cmac.c
index 5b9cd982339d..64dd35e291b0 100644
--- a/drivers/crypto/ccp/ccp-crypto-aes-cmac.c
+++ b/drivers/crypto/ccp/ccp-crypto-aes-cmac.c
@@ -63,10 +63,8 @@ static int ccp_do_cmac_update(struct ahash_request *req, unsigned int nbytes,
unsigned int len, need_pad, sg_count;
int ret;
- if (!ctx->u.aes.key_len) {
- pr_err("AES key not set\n");
+ if (!ctx->u.aes.key_len)
return -EINVAL;
- }
if (nbytes)
rctx->null_msg = 0;