diff options
author | Haitao Shan <hshan@google.com> | 2023-08-25 16:19:13 -0700 |
---|---|---|
committer | Haitao Shan <hshan@google.com> | 2024-04-01 18:44:56 -0700 |
commit | 7e41dff254b45667a9b993a5727d3a8071856999 (patch) | |
tree | 2aaa6e2a608bdc7ce90d19df29b86285feb7505e /arch/x86/kvm/emulate.c | |
parent | b23907397a84493ee2f4d8ba0af1bd4c80d79cf4 (diff) | |
download | aehd-7e41dff254b45667a9b993a5727d3a8071856999.tar.gz |
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
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rwxr-xr-x | arch/x86/kvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) && |