crypto: qat - fix bad unlock balance
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 15 Oct 2014 18:33:15 +0000 (11:33 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:49:37 +0000 (22:49 +0800)
commit8c4cef464b90b1638ff01a922d6a34095cc09c0c
tree7de1077263da5574206ee4fc77d5c054f8aeea4d
parent41a84982a1d728165554be3e2be845f2caf83b55
crypto: qat - fix bad unlock balance

The mutex table_lock is unlocked in two functions without first being locked.
Fix the functions to properly protect the accel_table with the table_lock.

Also, fix a spelling error in one of the function's header comment.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_dev_mgr.c