diff options
Diffstat (limited to 'arch/i386/kernel/pci-dma.c')
-rw-r--r-- | arch/i386/kernel/pci-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/pci-dma.c b/arch/i386/kernel/pci-dma.c index 3ebcea033623..30b754f7cbec 100644 --- a/arch/i386/kernel/pci-dma.c +++ b/arch/i386/kernel/pci-dma.c | |||
@@ -77,7 +77,7 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
77 | { | 77 | { |
78 | void __iomem *mem_base = NULL; | 78 | void __iomem *mem_base = NULL; |
79 | int pages = size >> PAGE_SHIFT; | 79 | int pages = size >> PAGE_SHIFT; |
80 | int bitmap_size = (pages + 31)/32; | 80 | int bitmap_size = BITS_TO_LONGS(pages) * sizeof(long); |
81 | 81 | ||
82 | if ((flags & (DMA_MEMORY_MAP | DMA_MEMORY_IO)) == 0) | 82 | if ((flags & (DMA_MEMORY_MAP | DMA_MEMORY_IO)) == 0) |
83 | goto out; | 83 | goto out; |