[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] swiotlb: Keep offset in a page strictly smaller than PAGE_SIZE.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1184007619 -3600
# Node ID 5a4e93508aa03799989b63f8413aeae7df87c576
# Parent  f15643dab1ca40ff3f2ca7eed5196bc74703422a
swiotlb: Keep offset in a page strictly smaller than PAGE_SIZE.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 arch/i386/kernel/swiotlb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f15643dab1ca -r 5a4e93508aa0 arch/i386/kernel/swiotlb.c
--- a/arch/i386/kernel/swiotlb.c        Mon Jul 09 19:41:04 2007 +0100
+++ b/arch/i386/kernel/swiotlb.c        Mon Jul 09 20:00:19 2007 +0100
@@ -380,7 +380,7 @@ map_single(struct device *hwdev, struct 
        for (i = 0; i < nslots; i++) {
                io_tlb_orig_addr[index+i] = slot_buf;
                slot_buf.offset += 1 << IO_TLB_SHIFT;
-               if (slot_buf.offset > PAGE_SIZE) {
+               if (slot_buf.offset >= PAGE_SIZE) {
                        slot_buf.page++;
                        slot_buf.offset -= PAGE_SIZE;
                }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.