From 27642fade0fcd67189b47de12b0cda527815adf9 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 13 Nov 2003 23:55:03 +0000 Subject: [PATCH] Fix dev_zero() offset. --- lib/device/dev-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 8c64f526b..e8d272776 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -463,6 +463,8 @@ int dev_zero(struct device *dev, uint64_t offset, size_t len) len -= s; if (!len) break; + + offset += s; } dev->flags |= DEV_ACCESSED_W;