Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/arm/cortex Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/ded7eccbfce9
branches:  netbsd-9
changeset: 744686:ded7eccbfce9
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Feb 10 18:17:57 2020 +0000

description:
Pull up following revision(s) (requested by jmcneill in ticket #680):

        sys/arch/arm/cortex/gicv3_its.c: revision 1.25

Use kmem_zalloc for its state, fixes possible crash if a driver tries to
set affinity before a CPU is online.

diffstat:

 sys/arch/arm/cortex/gicv3_its.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8a40e31d418e -r ded7eccbfce9 sys/arch/arm/cortex/gicv3_its.c
--- a/sys/arch/arm/cortex/gicv3_its.c   Fri Jan 31 12:19:17 2020 +0000
+++ b/sys/arch/arm/cortex/gicv3_its.c   Mon Feb 10 18:17:57 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3_its.c,v 1.21 2019/06/30 17:33:59 jmcneill Exp $ */
+/* $NetBSD: gicv3_its.c,v 1.21.2.1 2020/02/10 18:17:57 martin Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3_its.c,v 1.21 2019/06/30 17:33:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3_its.c,v 1.21.2.1 2020/02/10 18:17:57 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -846,7 +846,7 @@
        if ((typer & GITS_TYPER_Physical) == 0)
                return ENXIO;
 
-       its = kmem_alloc(sizeof(*its), KM_SLEEP);
+       its = kmem_zalloc(sizeof(*its), KM_SLEEP);
        its->its_id = its_id;
        its->its_bst = sc->sc_bst;
        its->its_bsh = bsh;



Home | Main Index | Thread Index | Old Index