projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
263a3df
)
[s390] page_to_phys() always returns a multiple of PAGE_SIZE
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 Jan 2016 07:16:04 +0000
(
02:16
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 Jan 2016 07:16:04 +0000
(
02:16
-0500)
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/pci/pci_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/pci/pci_dma.c
b/arch/s390/pci/pci_dma.c
index d348f2c09a1eede659378cf4ae2686df008e4bd8..32da0a6ecec26b625463bcfc9207987784ac1322 100644
(file)
--- 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;