Module Name: src Committed By: jdolecek Date: Tue Apr 14 07:38:12 UTC 2020
Modified Files: src/sys/arch/xen/xen: xengnt.c Log Message: actually fix also the allocated memory size for the getstatus frames on i386 To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/arch/xen/xen/xengnt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/xengnt.c diff -u src/sys/arch/xen/xen/xengnt.c:1.33 src/sys/arch/xen/xen/xengnt.c:1.34 --- src/sys/arch/xen/xen/xengnt.c:1.33 Fri Apr 10 21:03:20 2020 +++ src/sys/arch/xen/xen/xengnt.c Tue Apr 14 07:38:12 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: xengnt.c,v 1.33 2020/04/10 21:03:20 jdolecek Exp $ */ +/* $NetBSD: xengnt.c,v 1.34 2020/04/14 07:38:12 jdolecek Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xengnt.c,v 1.33 2020/04/10 21:03:20 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xengnt.c,v 1.34 2020/04/14 07:38:12 jdolecek Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -191,7 +191,7 @@ xengnt_map_status(void) KASSERT(mutex_owned(&grant_lock)); - sz = gnt_status_frames * sizeof(u_long); + sz = gnt_status_frames * sizeof(uint64_t); pages = kmem_alloc(sz, KM_NOSLEEP); if (pages == NULL) return ENOMEM;