diff --git a/crypto-qti/qcedev.c b/crypto-qti/qcedev.c index 4d4cdfcd33..78d6593768 100644 --- a/crypto-qti/qcedev.c +++ b/crypto-qti/qcedev.c @@ -334,9 +334,9 @@ static void req_done(unsigned long data) podev->active_command = NULL; if (areq) { + areq->state = QCEDEV_REQ_DONE; if (!areq->timed_out) complete(&areq->complete); - areq->state = QCEDEV_REQ_DONE; } /* Look through queued requests and wake up the corresponding thread */