forked from luck/tmp_suning_uos_patched
Merge branch 'fixes_for_v3.15' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping
Pull dma-mapping fix from Marek Szyprowski: "A small fix for dma-mapping subsystem for ARM" * 'fixes_for_v3.15' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping: arm: dma-mapping: Fix mapping size value
This commit is contained in:
commit
92891ed6b1
@ -1963,8 +1963,8 @@ arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t size)
|
||||
mapping->nr_bitmaps = 1;
|
||||
mapping->extensions = extensions;
|
||||
mapping->base = base;
|
||||
mapping->size = bitmap_size << PAGE_SHIFT;
|
||||
mapping->bits = BITS_PER_BYTE * bitmap_size;
|
||||
mapping->size = mapping->bits << PAGE_SHIFT;
|
||||
|
||||
spin_lock_init(&mapping->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user