]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: ccree: fix buffer copy
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 6 Jun 2017 08:00:45 +0000 (11:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Jun 2017 14:23:27 +0000 (16:23 +0200)
commit26f4b1f7a8da3eaa6c32e12f87c9f5388196dc67
tree637f4262243277e6367556f42874008b89931d89
parent0a33252e060e97ed3fbdcec9517672f1e91aaef3
staging: ccree: fix buffer copy

Fix a bug where the copying of scatterlist buffers incorrectly
ignored bytes to skip in a scatterlist and ended 1 byte short.

This fixes testmgr hmac and hash test failures currently obscured
by hash import/export not being supported.

Fixes: abefd6741d ("staging: ccree: introduce CryptoCell HW driver").
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_buffer_mgr.c