From ed0303d19d6591c38891a79b2409fcf905a7cf0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 9 Aug 2008 21:27:24 +0000 Subject: [PATCH] * When creating the physical vector array, we did not advance "base" in the loop. * This is probably the cause for file corruptions as well as bug #2595; will have another look tomorrow. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26905 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/device_manager/dma_resources.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/kernel/device_manager/dma_resources.cpp b/src/system/kernel/device_manager/dma_resources.cpp index 2526210b67..190a58724d 100644 --- a/src/system/kernel/device_manager/dma_resources.cpp +++ b/src/system/kernel/device_manager/dma_resources.cpp @@ -427,6 +427,7 @@ DMAResource::TranslateNext(IORequest* request, IOOperation* operation) vecs[segmentCount].iov_len = entry.size; transferLeft -= entry.size; + base += entry.size; size -= entry.size; segmentCount++; }