crypto: qat - Fix invalid synchronization between register/unregister sym algs
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:09:17 +0000 (18:09 +0800)
commit6f043b50da8e03bdcc5703fd37ea45bc6892432f
treecc15a7fa03999b5027dd2020554531f189ee057d
parent030f4e968741d65aea9cd5f7814d1164967801ef
crypto: qat - Fix invalid synchronization between register/unregister sym algs

The synchronization method used atomic was bogus.
Use a proper synchronization with mutex.

Cc: stable@vger.kernel.org
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_algs.c