Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Free ih when done.



details:   https://anonhg.NetBSD.org/src/rev/e63f2b72c20b
branches:  trunk
changeset: 827755:e63f2b72c20b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Nov 11 17:37:03 2017 +0000

description:
Free ih when done.

diffstat:

 sys/arch/x86/x86/intr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6d1bd90470b3 -r e63f2b72c20b sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c   Sat Nov 11 17:26:51 2017 +0000
+++ b/sys/arch/x86/x86/intr.c   Sat Nov 11 17:37:03 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.109 2017/11/11 17:26:51 riastradh Exp $     */
+/*     $NetBSD: intr.c,v 1.110 2017/11/11 17:37:03 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.109 2017/11/11 17:26:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.110 2017/11/11 17:37:03 riastradh Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -1324,6 +1324,7 @@
 #else /* XEN */
        if (ih->pic_type == PIC_XEN) {
                event_remove_handler(ih->ih_pin, ih->ih_realfun, ih->ih_realarg);
+               kmem_free(ih, sizeof(*ih));
                return;
        }
 #if defined(DOM0OPS)



Home | Main Index | Thread Index | Old Index