summaryrefslogtreecommitdiff
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-10-12 13:11:25 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-20 13:39:26 +0800
commitab230b6c7e63b47b853c2bb6023c26c054c2d6c5 (patch)
tree89f26b2cdbc354b27d09572e625d101a2d6f6d68 /crypto/ecdh.c
parentd12a6b181866c9fbcd59338e54beb3491846e751 (diff)
downloadlinux-crypto-ab230b6c7e63b47b853c2bb6023c26c054c2d6c5.tar.gz
linux-crypto-ab230b6c7e63b47b853c2bb6023c26c054c2d6c5.zip
crypto: lskcipher - Return EINVAL when ecb_name fails sanity checks
Set the error value to -EINVAL instead of zero when the underlying name (within "ecb()") fails basic sanity checks. Fixes: 6781a99f1919 ("crypto: lskcipher - Add compatibility wrapper around ECB") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202310111323.ZjK7bzjw-lkp@intel.com/ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions