Re: [Qemu-devel] [PATCH] Fix integer overflow in block migration bandwidth calculation

2011-04-05 Thread Kevin Wolf
Am 31.03.2011 15:52, schrieb Avishay Traeger: > > block_mig_state.reads is an int, and multiplying by BLOCK_SIZE yielded a > negative number, resulting in a negative bandwidth (running on a 32-bit > machine). Cast to avoid. > > Signed-off-by: Avishay Traeger This patch is corrupted by line wra

[Qemu-devel] [PATCH] Fix integer overflow in block migration bandwidth calculation

2011-03-31 Thread Avishay Traeger
block_mig_state.reads is an int, and multiplying by BLOCK_SIZE yielded a negative number, resulting in a negative bandwidth (running on a 32-bit machine). Cast to avoid. Signed-off-by: Avishay Traeger --- block-migration.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git