Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen actually fix also the allocated memory size...



details:   https://anonhg.NetBSD.org/src/rev/d0fbfec56842
branches:  trunk
changeset: 930777:d0fbfec56842
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Apr 14 07:38:12 2020 +0000

description:
actually fix also the allocated memory size for the getstatus frames on i386

diffstat:

 sys/arch/xen/xen/xengnt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6fff56078d94 -r d0fbfec56842 sys/arch/xen/xen/xengnt.c
--- a/sys/arch/xen/xen/xengnt.c Tue Apr 14 07:31:52 2020 +0000
+++ b/sys/arch/xen/xen/xengnt.c Tue Apr 14 07:38:12 2020 +0000
@@ -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 @@
 
        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;



Home | Main Index | Thread Index | Old Index