From 0b6762f7e22c8d04ef38ff04d205d61201cee0ea Mon Sep 17 00:00:00 2001 From: Santosh Dronamraju Date: Mon, 17 May 2021 08:26:48 +0530 Subject: [PATCH] crypto-qti-virt: Add null check Add null check condition before accessing pointer. Change-Id: I6dadcb31a4b52e6f312171e82e1a02523566bfe5 Signed-off-by: Santosh Dronamraju --- drivers/soc/qcom/crypto-qti-virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);