diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2007-04-17 15:14:23 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2007-04-17 15:14:23 +0000 |
| commit | 90dea4f9a71dc3aea9fbf81b32487fffeb56c2de (patch) | |
| tree | 51159e3967ff128defb59acc6d324192b0551dfb /sys/isa | |
| parent | b63c567b6f8c001e8a1a0e186394acfac3c6dcb5 (diff) | |
Notes
Diffstat (limited to 'sys/isa')
| -rw-r--r-- | sys/isa/isa_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c index 72de76cb6464..05f6a5c92993 100644 --- a/sys/isa/isa_common.c +++ b/sys/isa/isa_common.c @@ -147,7 +147,7 @@ isa_find_memory(device_t child, struct isa_config *config, end = config->ic_mem[i].ir_end, align = config->ic_mem[i].ir_align; start + size - 1 <= end && start + size > start; - start += align) { + start += MAX(align, 1)) { bus_set_resource(child, SYS_RES_MEMORY, i, start, size); res[i] = bus_alloc_resource(child, |
