WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] linux/x86: dma_map_sg(): BUG_ON() bef

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/x86: dma_map_sg(): BUG_ON() before use
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Dec 2007 08:20:25 -0800
Delivery-date: Fri, 07 Dec 2007 08:21:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=