diff options
author | njl <njl@FreeBSD.org> | 2004-08-20 17:04:49 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-08-20 17:04:49 +0000 |
commit | e1d378a02cd7955c861713cee1b5c3c50fddff84 (patch) | |
tree | feca5b5bad0fa1f05af1416b3ee61f57e9401ab8 /sys/dev | |
parent | 2f1906caa2eaaa835377c84c4ec1a08ce54b8ff1 (diff) | |
download | FreeBSD-src-e1d378a02cd7955c861713cee1b5c3c50fddff84.zip FreeBSD-src-e1d378a02cd7955c861713cee1b5c3c50fddff84.tar.gz |
Use the new start for the offset, not the old end.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpica/acpi_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c index 51c30e5..f6600d1 100644 --- a/sys/dev/acpica/acpi_resource.c +++ b/sys/dev/acpica/acpi_resource.c @@ -539,7 +539,7 @@ acpi_reslist_add(device_t dev, int type, int rid, u_long start, u_long count) } else if (start >= rle->start && start <= rle->end) { if (end > rle->end) { start = rle->end + 1; - count = end - rle->end + 1; + count = end - start + 1; break; } else return (EEXIST); |