summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-12 14:16:51 -0800
committerDavid S. Miller <davem@davemloft.net>2010-12-12 14:16:51 -0800
commit36eac2130cdbac08606bb2c05775e52ab79b163c (patch)
treea8779593719f8fb661589e895aa09895c06d48ba
parenta19faf0250e09b16cac169354126404bc8aa342b (diff)
parente4dde731ae70072338352c6f8fb75fd04a42cf8d (diff)
downloadblackbird-op-linux-36eac2130cdbac08606bb2c05775e52ab79b163c.tar.gz
blackbird-op-linux-36eac2130cdbac08606bb2c05775e52ab79b163c.zip
Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
-rw-r--r--drivers/vhost/vhost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 94701ff3a23a..159c77a5746f 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -884,6 +884,7 @@ static int log_write(void __user *log_base,
int r;
if (!write_length)
return 0;
+ write_length += write_address % VHOST_PAGE_SIZE;
write_address /= VHOST_PAGE_SIZE;
for (;;) {
u64 base = (u64)(unsigned long)log_base;
@@ -897,7 +898,7 @@ static int log_write(void __user *log_base,
if (write_length <= VHOST_PAGE_SIZE)
break;
write_length -= VHOST_PAGE_SIZE;
- write_address += VHOST_PAGE_SIZE;
+ write_address += 1;
}
return r;
}
OpenPOWER on IntegriCloud