]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mm/dma-mapping.c
Merge master.kernel.org:/home/rmk/linux-2.6-arm
[net-next-2.6.git] / arch / arm / mm / dma-mapping.c
index e4dd0646e85978b89a164c40100d0561bd1005f7..ac6a36142fcd5a28084b3c669fac9e800fd65497 100644 (file)
@@ -198,7 +198,7 @@ __dma_alloc_remap(struct page *page, size_t size, gfp_t gfp, pgprot_t prot)
         * fragmentation of the DMA space, and also prevents allocations
         * smaller than a section from crossing a section boundary.
         */
-       bit = fls(size - 1) + 1;
+       bit = fls(size - 1);
        if (bit > SECTION_SHIFT)
                bit = SECTION_SHIFT;
        align = 1 << bit;