Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Ops, abort if we can't map the registers ! Point...



details:   https://anonhg.NetBSD.org/src/rev/5dfbdefcb694
branches:  trunk
changeset: 485957:5dfbdefcb694
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue May 09 17:05:52 2000 +0000

description:
Ops, abort if we can't map the registers ! Pointed out by Matthias Drochner.

diffstat:

 sys/dev/pci/siop_pci.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 1ba6a986be12 -r 5dfbdefcb694 sys/dev/pci/siop_pci.c
--- a/sys/dev/pci/siop_pci.c    Tue May 09 14:30:47 2000 +0000
+++ b/sys/dev/pci/siop_pci.c    Tue May 09 17:05:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop_pci.c,v 1.5 2000/05/06 00:46:19 soren Exp $       */
+/*     $NetBSD: siop_pci.c,v 1.6 2000/05/09 17:05:52 bouyer Exp $      */
 
 /*
  * Copyright (c) 2000 Manuel Bouyer.
@@ -249,6 +249,7 @@
                        &sc->siop.sc_raddr, NULL) != 0) {
                        printf("%s: unable to map device registers\n",
                            sc->siop.sc_dev.dv_xname);
+                       return;
                }
        }
        if (pci_intr_map(pa->pa_pc, pa->pa_intrtag, pa->pa_intrpin,



Home | Main Index | Thread Index | Old Index