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 now that privcmd_map_obj cleans up correctl...



details:   https://anonhg.NetBSD.org/src/rev/69e38f66ef6d
branches:  trunk
changeset: 333065:69e38f66ef6d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 17 16:37:02 2014 +0000

description:
now that privcmd_map_obj cleans up correctly, don't double free...

diffstat:

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

diffs (31 lines):

diff -r 2c02137ceef5 -r 69e38f66ef6d sys/arch/xen/xen/privcmd.c
--- a/sys/arch/xen/xen/privcmd.c        Fri Oct 17 16:34:25 2014 +0000
+++ b/sys/arch/xen/xen/privcmd.c        Fri Oct 17 16:37:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: privcmd.c,v 1.48 2014/10/03 20:56:24 christos Exp $ */
+/* $NetBSD: privcmd.c,v 1.49 2014/10/17 16:37:02 christos Exp $ */
 
 /*-
  * Copyright (c) 2004 Christian Limpach.
@@ -27,7 +27,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.48 2014/10/03 20:56:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: privcmd.c,v 1.49 2014/10/17 16:37:02 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -360,11 +360,8 @@
                        }
                        error  = privcmd_map_obj(vmm, va, maddr,
                            mentry.npages, mcmd->dom);
-                       if (error) {
-                               kmem_free(maddr, 
-                                   sizeof(paddr_t) * mentry.npages);
+                       if (error)
                                return error;
-                       }
                }
                break;
        }



Home | Main Index | Thread Index | Old Index