public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch:x86:coco:sev: Initialize ctxt variable
@ 2024-11-15  0:35 Ragavendra
  2024-11-15 11:01 ` Ingo Molnar
  0 siblings, 1 reply; 16+ messages in thread
From: Ragavendra @ 2024-11-15  0:35 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, hpa, thomas.lendacky, ardb,
	ashish.kalra, tzimmermann, bhelgaas
  Cc: x86, linux-kernel, Ragavendra

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@gmail.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


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-11-18 21:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-15  0:35 [PATCH] arch:x86:coco:sev: Initialize ctxt variable Ragavendra
2024-11-15 11:01 ` Ingo Molnar
2024-11-15 11:02   ` Ard Biesheuvel
2024-11-15 19:53     ` Ragavendra B.N.
2024-11-15 22:55       ` Ard Biesheuvel
2024-11-18 14:44         ` Tom Lendacky
2024-11-18 14:53           ` Tom Lendacky
2024-11-18 19:43             ` Ragavendra B.N.
2024-11-18 19:50               ` Tom Lendacky
2024-11-18 20:22                 ` Ragavendra B.N.
2024-11-18 20:37                   ` Tom Lendacky
2024-11-18 21:02                     ` Ragavendra B.N.
2024-11-15 18:37   ` Ragavendra B.N.
2024-11-15 19:20     ` Tom Lendacky
2024-11-15 19:22       ` Tom Lendacky
2024-11-15 21:02       ` Ragavendra B.N.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox