diff options
author | 2023-12-24 10:21:35 +0200 | |
---|---|---|
committer | 2023-12-29 11:25:56 +0800 | |
commit | 7bafa74d1ba35dcc173e1ce915e983d65905f77e (patch) | |
tree | 2168a7b1ac9841984bd82a826df4b0623685d7a9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | crypto: sahara - improve error handling in sahara_sha_process() (diff) | |
download | wireguard-linux-7bafa74d1ba35dcc173e1ce915e983d65905f77e.tar.xz wireguard-linux-7bafa74d1ba35dcc173e1ce915e983d65905f77e.zip |
crypto: sahara - fix processing hash requests with req->nbytes < sg->length
It's not always the case that the entire sg entry needs to be processed.
Currently, when nbytes is less than sg->length, "Descriptor length" errors
are encountered.
To fix this, take the actual request size into account when populating the
hw links.
Fixes: 5a2bb93f5992 ("crypto: sahara - add support for SHA1/256")
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions