[s390] page_to_phys() always returns a multiple of PAGE_SIZE

Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2016-01-09 02:16:04 -05:00
parent 263a3df18f
commit bdb97e91e0

View File

@ -366,8 +366,7 @@ static void *s390_dma_alloc(struct device *dev, size_t size,
pa = page_to_phys(page); pa = page_to_phys(page);
memset((void *) pa, 0, size); memset((void *) pa, 0, size);
map = s390_dma_map_pages(dev, page, pa % PAGE_SIZE, map = s390_dma_map_pages(dev, page, 0, size, DMA_BIDIRECTIONAL, NULL);
size, DMA_BIDIRECTIONAL, NULL);
if (dma_mapping_error(dev, map)) { if (dma_mapping_error(dev, map)) {
free_pages(pa, get_order(size)); free_pages(pa, get_order(size));
return NULL; return NULL;