qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 1/1] block: fix alignment calculations in bdrv_c


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH 1/1] block: fix alignment calculations in bdrv_co_do_zero_pwritev
Date: Thu, 27 Apr 2017 16:44:36 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 26.04.2017 um 10:40 hat Denis V. Lunev geschrieben:
> tail_padding_bytes is calculated wrong. F.e. for
>     offset = 0
>     bytes = 2048
>     align = 512
> we will have tail_padding_bytes = 512 which is definitely wrong. The patch
> fixes that arithmetics.
> 
> Fortunately this problem is harmless, we will have 1 extra allocation and
> free thus there is no need to put this into stable. The problem is here
> from the very beginning.
> 
> Signed-off-by: Denis V. Lunev <address@hidden>
> CC: Stefan Hajnoczi <address@hidden>
> CC: Fam Zheng <address@hidden>

Thanks, applied to block-next.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]