Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112574
b: refs/heads/master
c: 9dfda12
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Sep 8, 2008
1 parent 24f410c commit 2bc7547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 68e91d61346db4359464d06617500141cfd1442a
refs/heads/master: 9dfda12b8b769e224ca4efbc35ace4524b9c017b
7 changes: 2 additions & 5 deletions trunk/lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,9 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size,
* swiotlb_map_single(), which will grab memory from
* the lowest available address range.
*/
dma_addr_t handle;
handle = swiotlb_map_single(NULL, NULL, size, DMA_FROM_DEVICE);
if (swiotlb_dma_mapping_error(hwdev, handle))
ret = map_single(hwdev, NULL, size, DMA_FROM_DEVICE);
if (!ret)
return NULL;

ret = bus_to_virt(handle);
}

memset(ret, 0, size);
Expand Down

0 comments on commit 2bc7547

Please sign in to comment.