- Correct a value of subend.

Pointed out by enami tsugutomo <enami@but-b.or.jp>.
This commit is contained in:
kanaoka 2001-08-27 13:02:12 +00:00
parent 0432180062
commit 3b4f143fd8
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_addr_fixup.c,v 1.9 2001/07/06 18:02:35 mcr Exp $ */
/* $NetBSD: pci_addr_fixup.c,v 1.10 2001/08/27 13:02:12 kanaoka Exp $ */
/*-
* Copyright (c) 2000 UCHIYAMA Yasushi. All rights reserved.
@ -308,7 +308,7 @@ pciaddr_do_resource_allocate(pc, tag, mapreg, ctx, type, addr, size)
PCIBIOS_PRINTV(("No available resources. fixup failed\n"));
return (1);
}
error = extent_alloc_subregion(ex, start, start + size - 1, size,
error = extent_alloc_subregion(ex, start, ex->ex_end, size,
size, 0,
EX_FAST|EX_NOWAIT|EX_MALLOCOK, addr);
if (error) {