|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] linux/x86: dma_map_sg(): BUG_ON() bef
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196956092 0
# Node ID 95256f8bb7ca9825a6f4d28937186f478cffd56d
# Parent 2151287a5eb9d8133f7ae9781d7d529e9c0f897d
linux/x86: dma_map_sg(): BUG_ON() before use
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
arch/i386/kernel/pci-dma-xen.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 2151287a5eb9 -r 95256f8bb7ca arch/i386/kernel/pci-dma-xen.c
--- a/arch/i386/kernel/pci-dma-xen.c Thu Dec 06 15:46:25 2007 +0000
+++ b/arch/i386/kernel/pci-dma-xen.c Thu Dec 06 15:48:12 2007 +0000
@@ -91,10 +91,10 @@ dma_map_sg(struct device *hwdev, struct
rc = swiotlb_map_sg(hwdev, sg, nents, direction);
} else {
for (i = 0; i < nents; i++ ) {
+ BUG_ON(!sg[i].page);
sg[i].dma_address =
gnttab_dma_map_page(sg[i].page) + sg[i].offset;
sg[i].dma_length = sg[i].length;
- BUG_ON(!sg[i].page);
IOMMU_BUG_ON(address_needs_mapping(
hwdev, sg[i].dma_address));
IOMMU_BUG_ON(range_straddles_page_boundary(
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] linux/x86: dma_map_sg(): BUG_ON() before use,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|