projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swiotlb-xen: remove BUG_ON in xen_bus_to_phys
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
xen
/
swiotlb-xen.c
diff --git
a/drivers/xen/swiotlb-xen.c
b/drivers/xen/swiotlb-xen.c
index 498b6544fd6264856fc8e47d66cb43d410b61fa8..153cf14821257310ad5d54a5b829bf195ace434a 100644
(file)
--- a/
drivers/xen/swiotlb-xen.c
+++ b/
drivers/xen/swiotlb-xen.c
@@
-96,8
+96,6
@@
static inline phys_addr_t xen_bus_to_phys(dma_addr_t baddr)
dma_addr_t dma = (dma_addr_t)pfn << PAGE_SHIFT;
phys_addr_t paddr = dma;
- BUG_ON(paddr != dma); /* truncation has occurred, should never happen */
-
paddr |= baddr & ~PAGE_MASK;
return paddr;