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 call uvm_km_kmem_alloc with right arguments



details:   https://anonhg.NetBSD.org/src/rev/92db60c6c04d
branches:  trunk
changeset: 773463:92db60c6c04d
user:      para <para%NetBSD.org@localhost>
date:      Thu Feb 02 20:11:26 2012 +0000

description:
call uvm_km_kmem_alloc with right arguments

fixes: kern/45913

diffstat:

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

diffs (27 lines):

diff -r 81f6d7a32a7e -r 92db60c6c04d sys/arch/xen/xen/xbd_xenbus.c
--- a/sys/arch/xen/xen/xbd_xenbus.c     Thu Feb 02 19:42:57 2012 +0000
+++ b/sys/arch/xen/xen/xbd_xenbus.c     Thu Feb 02 20:11:26 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbd_xenbus.c,v 1.52 2012/02/02 19:43:01 tls Exp $      */
+/*      $NetBSD: xbd_xenbus.c,v 1.53 2012/02/02 20:11:26 para Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.52 2012/02/02 19:43:01 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.53 2012/02/02 20:11:26 para Exp $");
 
 #include "opt_xen.h"
 
@@ -1058,7 +1058,7 @@
 
        rc = uvm_km_kmem_alloc(kmem_va_arena,
            req->req_bp->b_bcount, (VM_NOSLEEP | VM_INSTANTFIT),
-           req->req_data);
+           (vmem_addr_t *)&req->req_data);
        splx(s);
        if (__predict_false(rc != 0))
                return ENOMEM;



Home | Main Index | Thread Index | Old Index