Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Make sure to convey a failure to the call...



details:   https://anonhg.NetBSD.org/src/rev/ac8084d77aff
branches:  trunk
changeset: 1007493:ac8084d77aff
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Feb 21 23:27:06 2020 +0000

description:
Make sure to convey a failure to the calling function

Likely fix for PR kern/54999, but that was a one-off panic.

diffstat:

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

diffs (27 lines):

diff -r 29ce97913964 -r ac8084d77aff sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Fri Feb 21 22:25:50 2020 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Fri Feb 21 23:27:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.118 2019/11/05 10:21:31 jmcneill Exp $   */
+/*     $NetBSD: bus_dma.c,v 1.119 2020/02/21 23:27:06 maya Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include "opt_cputypes.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.118 2019/11/05 10:21:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.119 2020/02/21 23:27:06 maya Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -404,7 +404,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