Skip to contentSkip to conversation

[4816] Fix DMA length bug seen with NetBSD (Cliff Wright)

Qemu-devel Blue Swirl 1 participant 1 message Jul 1, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 4816

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4816
Author:   blueswir1
Date:     2008-07-01 19:28:23 +0000 (Tue, 01 Jul 2008)

Log Message:
-----------
Fix DMA length bug seen with NetBSD (Cliff Wright)

Modified Paths:
--------------
trunk/hw/iommu.c

Modified: trunk/hw/iommu.c
===================================================================

hw/iommu.c +2 -2
@@ -301,9 +301,9 @@
                 iommu_bad_addr(opaque, page, is_write);
                 return;
             }
-            cpu_physical_memory_write(phys_addr, buf, len);
+            cpu_physical_memory_write(phys_addr, buf, l);
         } else {
-            cpu_physical_memory_read(phys_addr, buf, len);
+            cpu_physical_memory_read(phys_addr, buf, l);
         }
         len -= l;
         buf += l;