crypto: sahara - remove error message for bad aes request size
Do not spam the kernel log with unnecessary error messages when processing requests that aren't a multiple of AES block size. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
ebbcdd6358
commit
a7dc2d5c05
@@ -682,11 +682,8 @@ static int sahara_aes_crypt(struct skcipher_request *req, unsigned long mode)
|
||||
dev_dbg(dev->device, "nbytes: %d, enc: %d, cbc: %d\n",
|
||||
req->cryptlen, !!(mode & FLAGS_ENCRYPT), !!(mode & FLAGS_CBC));
|
||||
|
||||
if (!IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE)) {
|
||||
dev_err(dev->device,
|
||||
"request size is not exact amount of AES blocks\n");
|
||||
if (!IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE))
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
rctx->mode = mode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user