Message ID | 1493411622-5343-20-git-send-email-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/io.c b/block/io.c index 80d6c62..40bd94f 100644 --- a/block/io.c +++ b/block/io.c @@ -1444,7 +1444,7 @@ static int coroutine_fn bdrv_co_do_zero_pwritev(BdrvChild *child, int ret = 0; head_padding_bytes = offset & (align - 1); - tail_padding_bytes = align - ((offset + bytes) & (align - 1)); + tail_padding_bytes = (align - (offset + bytes)) & (align - 1); assert(flags & BDRV_REQ_ZERO_WRITE);