[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241115003505.9492-2-ragavendra.bn@gmail.com>
Date: Thu, 14 Nov 2024 16:35:06 -0800
From: Ragavendra <ragavendra.bn@...il.com>
To: tglx@...utronix.de,
mingo@...hat.com,
bp@...en8.de,
dave.hansen@...ux.intel.com,
hpa@...or.com,
thomas.lendacky@....com,
ardb@...nel.org,
ashish.kalra@....com,
tzimmermann@...e.de,
bhelgaas@...gle.com
Cc: x86@...nel.org,
linux-kernel@...r.kernel.org,
Ragavendra <ragavendra.bn@...il.com>
Subject: [PATCH] arch:x86:coco:sev: Initialize ctxt variable
Updating the ctxt value to NULL in the svsm_perform_ghcb_protocol as
it was not initialized.
Fixes: 2e1b3cc9d7f7 (grafted) Merge tag 'arm-fixes-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Signed-off-by: Ragavendra Nagraj <ragavendra.bn@...il.com>
---
arch/x86/coco/sev/shared.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/coco/sev/shared.c b/arch/x86/coco/sev/shared.c
index 71de53194089..a0fe7fc9bdc7 100644
--- a/arch/x86/coco/sev/shared.c
+++ b/arch/x86/coco/sev/shared.c
@@ -335,7 +335,7 @@ static int svsm_perform_msr_protocol(struct svsm_call *call)
static int svsm_perform_ghcb_protocol(struct ghcb *ghcb, struct svsm_call *call)
{
- struct es_em_ctxt ctxt;
+ struct es_em_ctxt ctxt = NULL;
u8 pending = 0;
vc_ghcb_invalidate(ghcb);
--
2.46.1
Powered by blists - more mailing lists