aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAvishay Traeger <AVISHAY@il.ibm.com>2011-04-06 10:45:36 +0300
committerKevin Wolf <kwolf@redhat.com>2011-04-07 13:51:48 +0200
commit155eb9aa09249874b4ff49e94c58595ad82d3abb (patch)
treed7a2a659329775ecdae2f4d3f4116d5e174a3c7e /hw
parent7d905f716bea633f2836e1d661387983aacdc6d6 (diff)
Fix integer overflow in block migration bandwidth calculation
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). Change order to avoid. Signed-off-by: Avishay Traeger <avishay@il.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions