crypto: qat - adf_ae_stop() is never called
authorAllan, Bruce W <bruce.w.allan@intel.com>
Fri, 9 Jan 2015 19:55:09 +0000 (11:55 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Jan 2015 11:30:46 +0000 (22:30 +1100)
In adf_dev_stop(), adf_ae_stop() is never called because adf_dev_started()
will always return false since the ADF_STATUS_STARTED bit is cleared
earlier in the function.

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

index edbf85af4ea542c917cc72e77a8a239987d254ba..8f0ca498ab870c21ffe0c3c016b4b8603256a0ea 100644 (file)
@@ -319,7 +319,7 @@ int adf_dev_stop(struct adf_accel_dev *accel_dev)
        if (wait)
                msleep(100);
 
-       if (adf_dev_started(accel_dev)) {
+       if (test_bit(ADF_STATUS_AE_STARTED, &accel_dev->status)) {
                if (adf_ae_stop(accel_dev))
                        pr_err("QAT: failed to stop AE\n");
                else