]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: sahara - handle zero-length aes requests
authorOvidiu Panait <ovidiu.panait@windriver.com>
Sun, 24 Dec 2023 08:21:31 +0000 (10:21 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Dec 2023 03:25:56 +0000 (11:25 +0800)
commitd1d6351e37aac14b32a291731d0855996c459d11
tree49e33f6f498c67422658635290a2b85936aab64b
parent069579d0291cebda575a823ac1c85f0644e2ed95
crypto: sahara - handle zero-length aes requests

In case of a zero-length input, exit gracefully from sahara_aes_crypt().

Fixes: 5de8875281e1 ("crypto: sahara - Add driver for SAHARA2 accelerator.")
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c