diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-09 10:16:04 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-09 10:16:04 +0300 |
commit | bdb97e91e0140230bda9a83f6dbaa29b0c2e0522 (patch) | |
tree | 2b4d0308c54241f520a811fec089719a76e3f961 /arch | |
parent | 263a3df18fa2c078ab3e8b14fece6cfa6053e86a (diff) | |
download | linux-bdb97e91e0140230bda9a83f6dbaa29b0c2e0522.tar.xz |
[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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/pci/pci_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c index d348f2c09a1e..32da0a6ecec2 100644 --- a/arch/s390/pci/pci_dma.c +++ b/arch/s390/pci/pci_dma.c @@ -366,8 +366,7 @@ static void *s390_dma_alloc(struct device *dev, size_t size, pa = page_to_phys(page); memset((void *) pa, 0, size); - map = s390_dma_map_pages(dev, page, pa % PAGE_SIZE, - size, DMA_BIDIRECTIONAL, NULL); + map = s390_dma_map_pages(dev, page, 0, size, DMA_BIDIRECTIONAL, NULL); if (dma_mapping_error(dev, map)) { free_pages(pa, get_order(size)); return NULL; |