diff --git a/drivers/soc/qcom/crypto-qti-virt.c b/drivers/soc/qcom/crypto-qti-virt.c index ca1f17220eb9..320f7322a7b5 100644 --- a/drivers/soc/qcom/crypto-qti-virt.c +++ b/drivers/soc/qcom/crypto-qti-virt.c @@ -97,7 +97,8 @@ static int32_t send_fbe_req_hab(void *arg) } } while (0); - req_args->ret = ret; + if (req_args) + req_args->ret = ret; complete(&send_fbe_req_done);