[IA64] Only build arch/ia64/kernel/acpi.o when CONFIG_ACPI
[safe/jmp/linux-2.6] / arch / ia64 / include / asm / dma-mapping.h
index 8d3c79c..7d09a09 100644 (file)
@@ -73,7 +73,7 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
        if (!dev->dma_mask)
                return 0;
 
-       return addr + size <= *dev->dma_mask;
+       return addr + size - 1 <= *dev->dma_mask;
 }
 
 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)