]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-crypto - copy the temporary data to output buffer properly
authorTero Kristo <t-kristo@ti.com>
Tue, 5 Nov 2019 14:01:11 +0000 (16:01 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:37:00 +0000 (16:37 +0800)
commitd1f65f6bb23527b966c97bdaf8b79242b2d27fa1
tree5b86fcabe275a6b89d203014ae06cea0b5c3fc7c
parent3d84555808647a386f83c738c8baa8beb3c0d22d
crypto: omap-crypto - copy the temporary data to output buffer properly

Both source and destination are scatterlists that can contain multiple
entries under the omap crypto cleanup handling. Current code only copies
data from the first source scatterlist entry to the target scatterlist,
potentially omitting any sg entries following the first one. Instead,
implement a new routine that walks through both source and target and
copies the data over once it goes.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-crypto.c