diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-03 19:43:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-03 19:43:29 +0000 |
commit | 885411e134f32d4a07e3ddf2b275b4c13694ea20 (patch) | |
tree | 77bda8c8727e6ade0a41fc916b9e1252c08d3b6a /sys | |
parent | 463e26094e7be262cd07e3434ec3532b27b78624 (diff) |
Correctly return the error code if uvm_km_kmemalloc() fails.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 05bd61dd45b..0e508e13c60 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.136 2013/06/03 19:16:44 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.137 2013/06/03 19:43:28 mpi Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -1071,7 +1071,7 @@ bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, printf("bus_space_map: can't free region\n"); } } - return 0; + return error; } bus_addr_t bus_space_unmap_p(bus_space_tag_t t, bus_space_handle_t bsh, bus_size_t size) |