summaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorMichael S. Tsirkin2010-09-14 13:48:17 +0200
committerMichael S. Tsirkin2010-09-14 16:02:23 +0200
commit6b37c87c96a5b148685e8e6bf09d0aca953cb1a8 (patch)
treed3ffdfbda72347674b720c5fd0c1c4421e19836d /fsdev
parentserial: Wrap debug prints around a DPRINTF macro (diff)
downloadqemu-6b37c87c96a5b148685e8e6bf09d0aca953cb1a8.tar.gz
qemu-6b37c87c96a5b148685e8e6bf09d0aca953cb1a8.tar.xz
qemu-6b37c87c96a5b148685e8e6bf09d0aca953cb1a8.zip
vhost: fix infinite loop on error path
file.index is unsigned, hence 'while (--file.index >= 0)' will loop > forever. Change to while (file.index-- > 0). Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions