crypto: nx/842 - Fix context corruption
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2015 13:40:39 +0000 (21:40 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Jul 2015 06:56:45 +0000 (14:56 +0800)
commit23ad69aafec5d3815fdbe59aea56ec4b59dcae60
tree73a56dd404df53701365206f6225e09c283cf8c6
parent2c11a3f970d143f86bff096ca84a3d3f3b5ac3c1
crypto: nx/842 - Fix context corruption

The transform context is shared memory and must not be written
to without locking.  This patch adds locking to nx-842 to prevent
context corruption.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-crypto.c