Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/arch/arm/arm32 Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/544edfda44db
branches:  netbsd-8
changeset: 745229:544edfda44db
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 25 19:20:43 2020 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1510):

        sys/arch/arm/arm32/bus_dma.c: revision 1.119
        sys/arch/arm/arm32/bus_dma.c: revision 1.120

Make sure to convey a failure to the calling function
Likely fix for PR kern/54999, but that was a one-off panic.
 -
Fix previous for non-_ARM32_NEED_BUS_DMA_BOUNCE builds

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 8b806bfdd646 -r 544edfda44db sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Tue Feb 25 19:12:14 2020 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Tue Feb 25 19:20:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.98 2017/01/05 09:08:45 msaitoh Exp $     */
+/*     $NetBSD: bus_dma.c,v 1.98.8.1 2020/02/25 19:20:43 martin Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include "opt_arm_bus_space.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.98 2017/01/05 09:08:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.98.8.1 2020/02/25 19:20:43 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -323,6 +323,7 @@
 {
        struct arm32_bus_dmamap *map;
        void *mapstore;
+       int error = 0;
 
 #ifdef DEBUG_DMA
        printf("dmamap_create: t=%p size=%lx nseg=%x msegsz=%lx boundary=%lx flags=%x\n",
@@ -365,7 +366,6 @@
        struct arm32_bus_dma_cookie *cookie;
        int cookieflags;
        void *cookiestore;
-       int error;
 
        cookieflags = 0;
 
@@ -412,7 +412,7 @@
 #ifdef DEBUG_DMA
        printf("dmamap_create:map=%p\n", map);
 #endif /* DEBUG_DMA */
-       return (0);
+       return error;
 }
 
 /*



Home | Main Index | Thread Index | Old Index