diff --git a/sys/arm/arm/busdma_machdep-v6.c b/sys/arm/arm/busdma_machdep-v6.c index 94d02a999587..a7a594768bc2 100644 --- a/sys/arm/arm/busdma_machdep-v6.c +++ b/sys/arm/arm/busdma_machdep-v6.c @@ -252,9 +252,9 @@ exclusion_bounce_check(vm_offset_t lowaddr, vm_offset_t highaddr) return (0); for (i = 0; phys_avail[i] && phys_avail[i + 1]; i += 2) { - if ((lowaddr >= phys_avail[i] && lowaddr <= phys_avail[i + 1]) + if ((lowaddr >= phys_avail[i] && lowaddr < phys_avail[i + 1]) || (lowaddr < phys_avail[i] && - highaddr > phys_avail[i])) + highaddr >= phys_avail[i])) return (1); } return (0);