summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorAlberto Garcia2017-09-13 10:28:17 +0200
committerKevin Wolf2017-09-26 14:46:23 +0200
commitb5806108d20fc32b4692e721d8bd6376f4ca4a69 (patch)
tree85e7f935c7dfe158516c34b04bfc57923d146275 /linux-user
parentiotests: Print full path of bad output if mismatch (diff)
downloadqemu-b5806108d20fc32b4692e721d8bd6376f4ca4a69.tar.gz
qemu-b5806108d20fc32b4692e721d8bd6376f4ca4a69.tar.xz
qemu-b5806108d20fc32b4692e721d8bd6376f4ca4a69.zip
throttle: Assert that bkt->max is valid in throttle_compute_wait()
If bkt->max == 0 and bkt->burst_length > 1 then we could have a division by 0 in throttle_do_compute_wait(). That configuration is however not permitted and is already detected by throttle_is_valid(), but let's assert it in throttle_compute_wait() to make it explicit. Found by Coverity (CID: 1381016). Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions