diff options
author | Antoine Tenart <antoine.tenart@bootlin.com> | 2019-05-27 17:51:05 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-06 09:38:56 +0300 |
commit | 583d7e195f48753c5da8cc75a8ed332cad7287b0 (patch) | |
tree | c8c287d4c6d5b224a765b33acd97fd76df2cccab /fs/cramfs | |
parent | 082ec2d48467b61aa89783e954645ec441714c4e (diff) | |
download | linux-583d7e195f48753c5da8cc75a8ed332cad7287b0.tar.xz |
crypto: inside-secure - fix use of the SG list
Replace sg_nents_for_len by sg_nents when DMA mapping/unmapping buffers
and when looping over the SG entries. This fix cases where the SG
entries aren't used fully, which would in such cases led to using fewer
SG entries than needed (and thus the engine wouldn't have access to the
full input data and the result would be wrong).
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'fs/cramfs')
0 files changed, 0 insertions, 0 deletions