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

crypto: omap-des - handle NULL cipher request

If no data is provided for DES request, just return immediately. No
processing is needed in this case.

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
aca8bf00 96846223

+3
+3
drivers/crypto/omap-des.c
··· 637 637 !!(mode & FLAGS_ENCRYPT), 638 638 !!(mode & FLAGS_CBC)); 639 639 640 + if (!req->cryptlen) 641 + return 0; 642 + 640 643 if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) 641 644 return -EINVAL; 642 645