Re: [Qemu-devel] [PATCH v2] mirror: correct buf_size

2015-05-14 Thread Paolo Bonzini
On 14/05/2015 16:06, Fam Zheng wrote: > On Thu, 05/14 12:38, Paolo Bonzini wrote: >> >> >> On 14/05/2015 12:29, Wen Congyang wrote: >>> >>> If buf_size % granularity is not 0, mirror_free_init() will >>> do dangerous things. >>> >>> Signed-off-by: Wen Congyang >>> --- >>> block/mirror.c | 2 +-

Re: [Qemu-devel] [PATCH v2] mirror: correct buf_size

2015-05-14 Thread Fam Zheng
On Thu, 05/14 12:38, Paolo Bonzini wrote: > > > On 14/05/2015 12:29, Wen Congyang wrote: > > > > If buf_size % granularity is not 0, mirror_free_init() will > > do dangerous things. > > > > Signed-off-by: Wen Congyang > > --- > > block/mirror.c | 2 +- > > 1 file changed, 1 insertion(+), 1 de

Re: [Qemu-devel] [PATCH v2] mirror: correct buf_size

2015-05-14 Thread Paolo Bonzini
On 14/05/2015 12:29, Wen Congyang wrote: > > If buf_size % granularity is not 0, mirror_free_init() will > do dangerous things. > > Signed-off-by: Wen Congyang > --- > block/mirror.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/block/mirror.c b/block/mirror.c > in

[Qemu-devel] [PATCH v2] mirror: correct buf_size

2015-05-14 Thread Wen Congyang
If buf_size % granularity is not 0, mirror_free_init() will do dangerous things. Signed-off-by: Wen Congyang --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index 58f391a..9521212 100644 --- a/block/mirror.c +++ b/block/mirr