/[linux-patches]/genpatches-2.6/tags/2.6.32-47/1030_linux-2.6.32.31.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.32-47/1030_linux-2.6.32.31.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2037 - (show annotations) (download)
Wed Dec 28 14:38:55 2011 UTC (6 years, 9 months ago) by psomas
File size: 541 byte(s)
2.6.32-47 release
1 diff --git a/lib/swiotlb.c b/lib/swiotlb.c
2 index 7740ee8..ac25cd2 100644
3 --- a/lib/swiotlb.c
4 +++ b/lib/swiotlb.c
5 @@ -631,10 +631,8 @@ dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
6 /*
7 * Ensure that the address returned is DMA'ble
8 */
9 - if (!dma_capable(dev, dev_addr, size)) {
10 - swiotlb_tbl_unmap_single(dev, map, size, dir);
11 - dev_addr = swiotlb_virt_to_bus(dev, io_tlb_overflow_buffer);
12 - }
13 + if (!dma_capable(dev, dev_addr, size))
14 + panic("map_single: bounce buffer is not DMA'ble");
15
16 return dev_addr;
17 }

  ViewVC Help
Powered by ViewVC 1.1.20