summaryrefslogtreecommitdiffstats
path: root/tests/test-bdrv-graph-mod.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-10-11 11:07:07 +0200
committerMax Reitz2019-10-28 11:22:30 +0100
commitfed33bd175f663cc8c13f8a490a4f35a19756cfe (patch)
treecf89f36252648025036de3ccefbee91f501b453c /tests/test-bdrv-graph-mod.c
parentiotests: Cache supported_formats() (diff)
downloadqemu-fed33bd175f663cc8c13f8a490a4f35a19756cfe.tar.gz
qemu-fed33bd175f663cc8c13f8a490a4f35a19756cfe.tar.xz
qemu-fed33bd175f663cc8c13f8a490a4f35a19756cfe.zip
hbitmap: handle set/reset with zero length
Passing zero length to these functions leads to unpredicted results. Zero-length set/reset may occur in active-mirror, on zero-length write (which is unlikely, but not guaranteed to never happen). Let's just do nothing on zero-length request. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-id: 20191011090711.19940-2-vsementsov@virtuozzo.com Reviewed-by: Max Reitz <mreitz@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/test-bdrv-graph-mod.c')
0 files changed, 0 insertions, 0 deletions