From 7e41dff254b45667a9b993a5727d3a8071856999 Mon Sep 17 00:00:00 2001 From: Haitao Shan Date: Fri, 25 Aug 2023 16:19:13 -0700 Subject: Fix warning messages from CodeQL scan for WHCP. See: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/static-tools-and-codeql Change-Id: I441cf30f02381e90aefbba03cb0d837ef422e238 --- arch/x86/kvm/emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86/kvm/emulate.c') diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 1515617..3fd7a76 100755 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -1519,7 +1519,7 @@ static int pio_in_emulated(struct x86_emulate_ctxt *ctxt, rc->pos = rc->end = 0; if (!ctxt->ops->pio_in_emulated(ctxt, size, port, rc->data, n)) return 0; - rc->end = n * size; + rc->end = (size_t)n * size; } if (ctxt->rep_prefix && (ctxt->d & String) && -- cgit v1.2.3