Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom return NULL when failing to establish ...



details:   https://anonhg.NetBSD.org/src/rev/f44aadc222b4
branches:  trunk
changeset: 332296:f44aadc222b4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 14 14:29:57 2014 +0000

description:
return NULL when failing to establish interrupt

diffstat:

 sys/arch/arm/broadcom/bcm2835_dmac.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 448ac1ce359e -r f44aadc222b4 sys/arch/arm/broadcom/bcm2835_dmac.c
--- a/sys/arch/arm/broadcom/bcm2835_dmac.c      Sun Sep 14 11:00:52 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_dmac.c      Sun Sep 14 14:29:57 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_dmac.c,v 1.8 2014/09/12 21:22:13 jmcneill Exp $ */
+/* $NetBSD: bcm2835_dmac.c,v 1.9 2014/09/14 14:29:57 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_dmac.c,v 1.8 2014/09/12 21:22:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_dmac.c,v 1.9 2014/09/14 14:29:57 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -220,6 +220,7 @@
                    "failed to establish interrupt for DMA%d\n", ch->ch_index);
                ch->ch_callback = NULL;
                ch->ch_callbackarg = NULL;
+               ch = NULL;
        }
 
        return ch;



Home | Main Index | Thread Index | Old Index