Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/isa Fix uninitialised use of variable mpih



details:   https://anonhg.NetBSD.org/src/rev/8a1df3c11d66
branches:  trunk
changeset: 355254:8a1df3c11d66
user:      cherry <cherry%NetBSD.org@localhost>
date:      Fri Jul 21 12:27:48 2017 +0000

description:
Fix uninitialised use of variable mpih

Pointed out by joerg@

diffstat:

 sys/arch/x86/isa/isa_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ea604b822367 -r 8a1df3c11d66 sys/arch/x86/isa/isa_machdep.c
--- a/sys/arch/x86/isa/isa_machdep.c    Fri Jul 21 08:49:05 2017 +0000
+++ b/sys/arch/x86/isa/isa_machdep.c    Fri Jul 21 12:27:48 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isa_machdep.c,v 1.35 2017/07/16 06:14:23 cherry Exp $  */
+/*     $NetBSD: isa_machdep.c,v 1.36 2017/07/21 12:27:48 cherry Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.35 2017/07/16 06:14:23 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.36 2017/07/21 12:27:48 cherry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -211,7 +211,7 @@
        struct pic *pic;
        int pin;
 #if NIOAPIC > 0
-       intr_handle_t mpih;
+       intr_handle_t mpih = 0;
        struct ioapic_softc *ioapic = NULL;
 #endif
 



Home | Main Index | Thread Index | Old Index