crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg
commitec956aabc23820d91e49c4131f69dec50e8e205f
authorSalvatore Benedetto <salvatore.benedetto@intel.com>
Fri, 13 Jan 2017 11:54:08 +0000 (13 11:54 +0000)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 6 Mar 2017 22:29:29 +0000 (6 17:29 -0500)
tree88371b6141ebeadf07c59c207b586d54832a8ef0
parent3e9067b2ba1e4bd2d5d81a5e9ea12f024424916b
crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg

[ Upstream commit d6040764adcb5cb6de1489422411d701c158bb69 ]

Make sure CRYPTO_ALG_DEAD bit is cleared before proceeding with
the algorithm registration. This fixes qat-dh registration when
driver is restarted

Cc: <stable@vger.kernel.org>
Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
crypto/algapi.c