Skip to content

Commit a7dc2d5

Browse files
opanait-wrherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent ebbcdd6 commit a7dc2d5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/crypto/sahara.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,8 @@ static int sahara_aes_crypt(struct skcipher_request *req, unsigned long mode)
682682
dev_dbg(dev->device, "nbytes: %d, enc: %d, cbc: %d\n",
683683
req->cryptlen, !!(mode & FLAGS_ENCRYPT), !!(mode & FLAGS_CBC));
684684

685-
if (!IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE)) {
686-
dev_err(dev->device,
687-
"request size is not exact amount of AES blocks\n");
685+
if (!IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE))
688686
return -EINVAL;
689-
}
690687

691688
rctx->mode = mode;
692689

0 commit comments

Comments
 (0)