linux/drivers/crypto/mediatek
Ryder Lee 4432861fb9 crypto: mediatek - fix incorrect data transfer result
This patch fixes mtk_aes_xmit() data transfer bug.

The original function uses the same loop and ring->pos
to handle both command and result descriptors. But this
produces incomplete results when src.sg_len != dst.sg_len.

To solve the problem, we splits the descriptors into different
loops and uses cmd_pos and res_pos to record them respectively.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-01-23 22:50:29 +08:00
..
Makefile
mtk-aes.c crypto: mediatek - fix incorrect data transfer result 2017-01-23 22:50:29 +08:00
mtk-platform.c crypto: mediatek - make symbol of_crypto_id static 2017-01-13 18:47:16 +08:00
mtk-platform.h crypto: mediatek - fix incorrect data transfer result 2017-01-23 22:50:29 +08:00
mtk-regs.h
mtk-sha.c crypto: mediatek - fix incorrect data transfer result 2017-01-23 22:50:29 +08:00