Message ID | 20230713151518.1513949-5-thomas.bourgoin@foss.st.com |
---|---|
State | Accepted |
Commit | d9c83f71eeceed2cb54bb78be84f2d4055fd9a1f |
Headers | show |
Series | [v2,1/7] dt-bindings: crypto: add new compatible for stm32-hash | expand |
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index c179a6c1a457..519fb716acee 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -678,9 +678,9 @@ static int stm32_hash_dma_send(struct stm32_hash_dev *hdev) } for_each_sg(rctx->sg, tsg, rctx->nents, i) { + sg[0] = *tsg; len = sg->length; - sg[0] = *tsg; if (sg_is_last(sg)) { if (hdev->dma_mode == 1) { len = (ALIGN(sg->length, 16) - 16);