diff options
author | 2014-10-02 18:55:49 +0000 | |
---|---|---|
committer | 2014-10-02 18:55:49 +0000 | |
commit | 9e9da256bd55f715fd1f8ea7dda145df4a30f50a (patch) | |
tree | 636dc7f9a428f1695f8ab835d87bfcb17a16484d | |
parent | avoid a double free (diff) | |
download | wireguard-openbsd-9e9da256bd55f715fd1f8ea7dda145df4a30f50a.tar.xz wireguard-openbsd-9e9da256bd55f715fd1f8ea7dda145df4a30f50a.zip |
Pass the right bus_dmatag_t to the children.
-rw-r--r-- | sys/arch/sgi/gio/pci_gio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/gio/pci_gio.c b/sys/arch/sgi/gio/pci_gio.c index 4005b9c394f..ac359747ae8 100644 --- a/sys/arch/sgi/gio/pci_gio.c +++ b/sys/arch/sgi/gio/pci_gio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_gio.c,v 1.2 2014/05/19 21:18:42 miod Exp $ */ +/* $OpenBSD: pci_gio.c,v 1.3 2014/10/02 18:55:49 miod Exp $ */ /* $NetBSD: pci_gio.c,v 1.9 2011/07/01 18:53:46 dyoung Exp $ */ /* @@ -283,7 +283,7 @@ giopci_attach(struct device *parent, struct device *self, void *aux) bzero(&pba, sizeof(pba)); pba.pba_busname = "pci"; pba.pba_iot = pba.pba_memt = ga->ga_iot; - if (sc->sc_dma_boundary != 0) + if (sc->sc_dma_boundary == 0) pba.pba_dmat = ga->ga_dmat; else pba.pba_dmat = &sc->sc_dmat_store; |