diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-11-16 16:42:46 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-11-16 16:42:46 +0000 |
commit | cb8b27e414038a9ede4e7df3653fdb54a0f836b3 (patch) | |
tree | 2c30e6e191aaea33b0119a2526da5633b7ac2a1b /sys | |
parent | 3787d1d0418c811d0c24eeb9e31bd1a4ea84042f (diff) |
_bus_dmamap_load_uio now returns an ERROR instead of claiming no error
(and doing nothing). This allows for proper error propagation to
/dev/crypto which depends on bus_dmamap_load_uio() and failure
recovery... Better solution would be to -implement- _load_uio, but
that's another day.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 2e4471953e7..364b3093ead 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.22 2001/11/10 20:11:04 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.23 2001/11/16 16:42:45 jason Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -1380,8 +1380,10 @@ _bus_dmamap_load_uio(t, map, uio, flags) map->_dm_source = (void *)uio; return (bus_dmamap_load_raw(t, map, segs, i, (bus_size_t)len, flags)); -#endif return 0; +#else + return (EOPNOTSUPP); +#endif } /* |