diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2017-02-10 13:07:17 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-15 06:23:38 +0100 |
commit | fd88aac93e4dc7810940e854be1c3dc5adb20120 (patch) | |
tree | 36429035431b0fe7cfe8d30ff1f9b19c3b3dc1a2 /samples/livepatch | |
parent | crypto: caam - fix JR IO mapping if one fails (diff) | |
download | linux-fd88aac93e4dc7810940e854be1c3dc5adb20120.tar.xz linux-fd88aac93e4dc7810940e854be1c3dc5adb20120.zip |
crypto: caam - fix HW S/G in ablkcipher_giv_edesc_alloc()
HW S/G generation does not work properly when the following conditions
are met:
-src == dst
-src/dst is S/G
-IV is right before (contiguous with) the first src/dst S/G entry
since "iv_contig" is set to true (iv_contig is a misnomer here and
it actually refers to the whole output being contiguous)
Fix this by setting dst S/G nents equal to src S/G nents, instead of
leaving it set to init value (0).
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'samples/livepatch')
0 files changed, 0 insertions, 0 deletions