OSDN Git Service

crypto: stm32/cryp - remove request mutex protection
authorLionel Debieve <lionel.debieve@st.com>
Wed, 24 Apr 2019 13:34:52 +0000 (15:34 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:29 +0000 (14:03 +0800)
commit29aed438e8702096a2dda3c5aed88e9176656be7
tree7796a9d1a1928903a141e247b54a40b0a32bb093
parent7ee27f5a3f8020124017624c010e9a8473bfbb14
crypto: stm32/cryp - remove request mutex protection

Mutex is badly used between threaded irq and driver.
This mutex must be removed as the framework must ensure
that requests must be serialized to avoid issue. Rework
req to avoid crash during finalize by fixing the NULL
pointer issue.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-cryp.c