summaryrefslogtreecommitdiff
path: root/sys/kern/subr_rman.c
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2003-01-21 17:02:21 +0000
committerThomas Moestl <tmm@FreeBSD.org>2003-01-21 17:02:21 +0000
commit72aeb19abaed6411ef4901319d26f071c932d8ef (patch)
tree7a9adba9bf5c8fd8b86a77f5f1cdc3e606cf371e /sys/kern/subr_rman.c
parent93001c7214078f55ae249541135001f9b5b4b904 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r--sys/kern/subr_rman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index 9ebbfcf3b01e..544603968336 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -229,7 +229,7 @@ rman_reserve_resource_bound(struct rman *rm, u_long start, u_long end,
*/
do {
rstart = (rstart + amask) & ~amask;
- if (((rstart ^ (rstart + count)) & bmask) != 0)
+ if (((rstart ^ (rstart + count - 1)) & bmask) != 0)
rstart += bound - (rstart & ~bmask);
} while ((rstart & amask) != 0 && rstart < end &&
rstart < s->r_end);