summaryrefslogtreecommitdiff
path: root/drivers/crypto/talitos.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-07-28 13:29:17 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-29 18:30:16 +0800
commit4816c9406430d0d3d4fa58a212a7a869d429b315 (patch)
tree06eee2ccd96dbdcd86c8f0c4f700386d3f160985 /drivers/crypto/talitos.c
parent64ec6ccb76e6ef13c40ad68e125545f8807a26c8 (diff)
downloadlwn-4816c9406430d0d3d4fa58a212a7a869d429b315.tar.gz
lwn-4816c9406430d0d3d4fa58a212a7a869d429b315.zip
lib/mpi: Fix SG miter leak
In mpi_read_raw_from_sgl we may leak the SG miter resouces after reading the leading zeroes. This patch fixes this by stopping the iteration once the leading zeroes have been read. Fixes: 127827b9c295 ("lib/mpi: Do not do sg_virt") Reported-by: Nicolai Stange <nicstange@gmail.com> Tested-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.c')
0 files changed, 0 insertions, 0 deletions