Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/gemini Don't dereference pointer when we're abo...



details:   https://anonhg.NetBSD.org/src/rev/c4e7d13288f3
branches:  trunk
changeset: 965042:c4e7d13288f3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Aug 30 00:33:55 2019 +0000

description:
Don't dereference pointer when we're about to panic because it's null.

Reported by Dr Silvio Cesare of InfoSect.

diffstat:

 sys/arch/arm/gemini/gemini_ipi.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 0777656e4342 -r c4e7d13288f3 sys/arch/arm/gemini/gemini_ipi.c
--- a/sys/arch/arm/gemini/gemini_ipi.c  Fri Aug 30 00:01:33 2019 +0000
+++ b/sys/arch/arm/gemini/gemini_ipi.c  Fri Aug 30 00:33:55 2019 +0000
@@ -7,7 +7,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: gemini_ipi.c,v 1.6 2012/10/27 17:17:38 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gemini_ipi.c,v 1.7 2019/08/30 00:33:55 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -169,7 +169,7 @@
         gemini_ipi_softc_t *sc = gemini_ipi_sc;
 
        if (sc == NULL)
-               panic("%s: NULL gemini_ipi_sc", device_xname(sc->sc_dev));
+               panic("NULL gemini_ipi_sc");
 
         gemini_ipi_intrq_remove(sc, ih);
 }



Home | Main Index | Thread Index | Old Index