]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: sun4i-ss - Replace spinlock_bh by spin_lock_irq{save|restore}
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Wed, 23 Mar 2016 15:11:24 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:15:49 +0000 (12:15 -0700)
commita80e1fbf11b6564a9f762841b5f497c0a72720d3
tree000b969b5aeb20c4192df5c8f348a3f8d1413c1f
parentefc1e73ce8f21cb6b039cedced25580f2de901a5
crypto: sun4i-ss - Replace spinlock_bh by spin_lock_irq{save|restore}

commit bdb6cf9f6fe6d9af905ea34b7c4bb78ea601329e upstream.

The current sun4i-ss driver could generate data corruption when ciphering/deciphering.
It occurs randomly on end of handled data.
No root cause have been found and the only way to remove it is to replace
all spin_lock_bh by their irq counterparts.

Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/sunxi-ss/sun4i-ss-cipher.c