diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-20 16:04:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-11-20 16:04:02 +0000 |
commit | a16012c7de365cc5a71128458071dc6d8775fa2f (patch) | |
tree | 4d2e1dc5b716cce39efdd0e9224b8b11222abb94 | |
parent | ecd1eefababcba78141cf35e53ce1986f3041da8 (diff) |
oops
-rw-r--r-- | sys/dev/isa/isadma.c | 8 |
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; |