Commit 6585cd36 authored by Tero Kristo's avatar Tero Kristo Committed by Herbert Xu

crypto: omap-aes - fixup aligned data cleanup

Aligned data cleanup is using wrong pointers in the cleanup calls. Most
of the time these are right, but can cause mysterious problems in some
cases. Fix to use the same pointers that were used with the align call.
Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 60a0894c
...@@ -502,10 +502,10 @@ static void omap_aes_done_task(unsigned long data) ...@@ -502,10 +502,10 @@ static void omap_aes_done_task(unsigned long data)
omap_aes_crypt_dma_stop(dd); omap_aes_crypt_dma_stop(dd);
} }
omap_crypto_cleanup(dd->in_sgl, NULL, 0, dd->total_save, omap_crypto_cleanup(dd->in_sg, NULL, 0, dd->total_save,
FLAGS_IN_DATA_ST_SHIFT, dd->flags); FLAGS_IN_DATA_ST_SHIFT, dd->flags);
omap_crypto_cleanup(&dd->out_sgl, dd->orig_out, 0, dd->total_save, omap_crypto_cleanup(dd->out_sg, dd->orig_out, 0, dd->total_save,
FLAGS_OUT_DATA_ST_SHIFT, dd->flags); FLAGS_OUT_DATA_ST_SHIFT, dd->flags);
/* Update IV output */ /* Update IV output */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment