summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 16:04:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-11-20 16:04:02 +0000
commita16012c7de365cc5a71128458071dc6d8775fa2f (patch)
tree4d2e1dc5b716cce39efdd0e9224b8b11222abb94 /sys/dev/isa
parentecd1eefababcba78141cf35e53ce1986f3041da8 (diff)
oops
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/isadma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/isadma.c b/sys/dev/isa/isadma.c
index 3fab93036c8..c823c58acf7 100644
--- a/sys/dev/isa/isadma.c
+++ b/sys/dev/isa/isadma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isadma.c,v 1.20 1998/11/20 15:57:20 deraadt Exp $ */
+/* $OpenBSD: isadma.c,v 1.21 1998/11/20 16:04:01 deraadt Exp $ */
/* $NetBSD: isadma.c,v 1.32 1997/09/05 01:48:33 thorpej Exp $ */
/*-
@@ -584,9 +584,6 @@ isa_dmamem_free(isadev, chan, addr, size)
panic("isa_dmamem_free");
}
- if (off < 0)
- return (-1);
-
seg.ds_addr = addr;
seg.ds_len = size;
@@ -649,6 +646,9 @@ isa_dmamem_mmap(isadev, chan, addr, size, off, prot, flags)
panic("isa_dmamem_mmap");
}
+ if (off < 0)
+ return (-1);
+
seg.ds_addr = addr;
seg.ds_len = size;