summaryrefslogtreecommitdiff
path: root/drivers/crypto/talitos.c
diff options
context:
space:
mode:
authorLeonidas S. Barbosa <leosilva@linux.vnet.ibm.com>2014-10-28 15:49:46 -0200
committerHerbert Xu <herbert@gondor.apana.org.au>2014-11-06 23:15:02 +0800
commit000851119e80edd46443250a1c89d3c45cd6eeca (patch)
tree10324f2a435198b3486fd74db86acbf4b057c8d8 /drivers/crypto/talitos.c
parent5313231ac9a4334ded1dc205aac60dd63c62ff1d (diff)
crypto: nx - Fix SHA concurrence issue and sg limit bounds
NX SHA algorithms stores the message digest into tfm what cause a concurrence issue where hashes may be replaced by others. This patch cleans up the cases where it's handling unnecessarily shared variables in nx context and copies the current msg digest to a sctx->state in order to safetly handle with the hashe's state. Also fixes and does some clean ups regarding the right sg max limit and bounds to the sg list avoind a memory crash. Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.c')
0 files changed, 0 insertions, 0 deletions