crypto/fsl: fsl_hash: Fix crash in flush dcache
authorGaurav Jain <gaurav.jain@nxp.com>
Fri, 29 Jul 2022 10:02:23 +0000 (15:32 +0530)
committerStefano Babic <sbabic@denx.de>
Sun, 18 Sep 2022 20:56:09 +0000 (22:56 +0200)
commit41460786884691a804091c4b1f125be68e4a0820
tree35ea01b9cc66ba33fdea5e4ae19e872be4a13e9c
parenta8e518b80a311860f3b5b1730469ee843da7d72e
crypto/fsl: fsl_hash: Fix crash in flush dcache

wrong end address passed to flush_dcache_range.
modified the flush_dache logic for scatter list elements.

Fixes: 1919f58a8f (crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish)
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
drivers/crypto/fsl/fsl_hash.c