crypto: mxs-dcp - Fix scatterlist processing
authorTomas Paukrt <tomaspaukrt@email.cz>
Sat, 22 Jan 2022 17:07:53 +0000 (18:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:12 +0000 (09:08 +0200)
commitf655997dcfa0c44ce05c1a3c7ff7a69f36f72cdb
tree0735a3b0d3dc079e7d9cd9d8ba4651a308a94e2c
parent582ba2867994da3ecd1ef90d1c0b4b2170cfc0fd
crypto: mxs-dcp - Fix scatterlist processing

[ Upstream commit 28e9b6d8199a3f124682b143800c2dacdc3d70dd ]

This patch fixes a bug in scatterlist processing that may cause incorrect AES block encryption/decryption.

Fixes: 2e6d793e1bf0 ("crypto: mxs-dcp - Use sg_mapping_iter to copy data")
Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/mxs-dcp.c