From cb8b27e414038a9ede4e7df3653fdb54a0f836b3 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Fri, 16 Nov 2001 16:42:46 +0000 Subject: _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. --- sys/arch/sparc64/sparc64/machdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') 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 } /* -- cgit v1.2.3