diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:20:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:20:19 +0000 |
commit | e7f53c53a8eac503ffbe310baba08ebea91948c4 (patch) | |
tree | f1021bfe6874893983728cde1985c0b28a7d8c96 /sys/arch/sgi | |
parent | e5a54ed84575461492221ebdbda47de65feb326e (diff) |
Do not return zero in bus_space_map() on failure (sigh).
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 5 | ||||
-rw-r--r-- | sys/arch/sgi/pci/macepcibridge.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index 6b4bf821d52..ac6ebc49fd0 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.16 2006/01/04 20:18:37 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.17 2006/01/04 20:20:16 miod Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -380,7 +380,8 @@ mace_space_map(bus_space_tag_t t, bus_addr_t offs, bus_size_t size, printf("bus_space_map: can't free region\n"); } } - return 0; + + return (error); } void diff --git a/sys/arch/sgi/pci/macepcibridge.c b/sys/arch/sgi/pci/macepcibridge.c index 528eb5a8177..3a946cca843 100644 --- a/sys/arch/sgi/pci/macepcibridge.c +++ b/sys/arch/sgi/pci/macepcibridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macepcibridge.c,v 1.7 2005/01/31 21:35:50 grange Exp $ */ +/* $OpenBSD: macepcibridge.c,v 1.8 2006/01/04 20:20:18 miod Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se) @@ -524,7 +524,8 @@ mace_pcib_space_map(bus_space_tag_t t, bus_addr_t offs, bus_size_t size, printf("bus_space_map: can't free region\n"); } } - return 0; + + return (error); } void |