>>> On 09.03.18 at 17:23, wrote:
> --- a/xen/arch/x86/domctl.c
> +++ b/xen/arch/x86/domctl.c
> @@ -415,14 +415,13 @@ long arch_do_domctl(
>
> case XEN_DOMCTL_getpageframeinfo3:
> {
> -unsigned int num = domctl->u.getpageframeinfo3.num;
> +unsigned long
The value of num is always the same as domctl->u.getpageframeinfo3.num,
it was assigned just a few lines before. Avoid truncation by making
num the same size as i, which is the only place where num is used.
Signed-off-by: Olaf Hering
---
xen/arch/x86/domctl.c | 5 ++---
1 file