summaryrefslogtreecommitdiffstats
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2017-01-20 06:41:09 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-01-23 15:50:29 +0100
commit4432861fb9747fce52f94bc13da0d9b41292ef69 (patch)
tree5fb79adb5e88a5825f825f5043761b3ac16df390 /kernel/stop_machine.c
parentcrypto: mediatek - move HW control data to transformation context (diff)
downloadlinux-4432861fb9747fce52f94bc13da0d9b41292ef69.tar.xz
linux-4432861fb9747fce52f94bc13da0d9b41292ef69.zip
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>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions