summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2023-12-01 20:06:22 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-12-08 06:59:45 +0300
commit5b8668ce3452827d27f8c34ff6ba080a8f983ed0 (patch)
tree00dc4b550ad5e9eaaa851165e054cc17d9b1fefa /include/linux
parentafffcf3db98b9495114b79d5381f8cc3f69476fb (diff)
downloadlinux-5b8668ce3452827d27f8c34ff6ba080a8f983ed0.tar.xz
crypto: sahara - fix processing requests with cryptlen < sg->length
It's not always the case that the entire sg entry needs to be processed. Currently, when cryptlen is less than sg->legth, "Descriptor length" errors are encountered. The error was noticed when testing xts(sahara-ecb-aes) with arbitrary sized input data. To fix this, take the actual request size into account when populating the hw links. 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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions