crypto: qat - Don't attempt to register algorithm multiple times
authorTadeusz Struk <tadeusz.struk@intel.com>
Wed, 22 Jul 2015 05:07:47 +0000 (22:07 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jul 2015 10:14:28 +0000 (18:14 +0800)
commit8f5ea2df02fb0a50d81701e0c5dc8a5f00381147
tree37f43cde0760e36149fe3d3972abcfe5bcc5f9ef
parent3cf080a7b747d800efc231d29bd3a07659c6aeb6
crypto: qat - Don't attempt to register algorithm multiple times

When multiple devices are present in the system the driver attempts
to register the same algorithm many times.

Changes in v2:
 - use proper synchronization mechanizm between register and unregister

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_asym_algs.c