Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145878
b: refs/heads/master
c: dd6b02f
h: refs/heads/master
v: v3
  • Loading branch information
Becky Bruce authored and Ingo Molnar committed Apr 8, 2009
1 parent 9abe541 commit 7025119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67131ad0514d7105b55003a0506209cf1bba3f00
refs/heads/master: dd6b02fe427f30520d0adc94aa52352367227873
3 changes: 1 addition & 2 deletions trunk/lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
struct dma_attrs *attrs)
{
phys_addr_t phys = page_to_phys(page) + offset;
void *ptr = page_address(page) + offset;
dma_addr_t dev_addr = swiotlb_phys_to_bus(dev, phys);
void *map;

Expand All @@ -651,7 +650,7 @@ dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
* buffering it.
*/
if (!address_needs_mapping(dev, dev_addr, size) &&
!range_needs_mapping(virt_to_phys(ptr), size))
!range_needs_mapping(phys, size))
return dev_addr;

/*
Expand Down

0 comments on commit 7025119

Please sign in to comment.