Loading drivers/base/dma-removed.c +9 −7 Original line number Diff line number Diff line Loading @@ -44,14 +44,16 @@ void *removed_alloc(struct device *dev, size_t size, dma_addr_t *handle, if (pfn) { addr = ioremap(__pfn_to_phys(pfn), size); if (WARN_ON(!addr)) { dma_release_from_contiguous(dev, pfn, order); } else { memset(addr, 0, size); if (no_kernel_mapping) { iounmap(addr); addr = (void *)NO_KERNEL_MAPPING_DUMMY; } if (addr) *handle = __pfn_to_phys(pfn); } } return addr; Loading Loading
drivers/base/dma-removed.c +9 −7 Original line number Diff line number Diff line Loading @@ -44,14 +44,16 @@ void *removed_alloc(struct device *dev, size_t size, dma_addr_t *handle, if (pfn) { addr = ioremap(__pfn_to_phys(pfn), size); if (WARN_ON(!addr)) { dma_release_from_contiguous(dev, pfn, order); } else { memset(addr, 0, size); if (no_kernel_mapping) { iounmap(addr); addr = (void *)NO_KERNEL_MAPPING_DUMMY; } if (addr) *handle = __pfn_to_phys(pfn); } } return addr; Loading