Vladimir Sementsov-Ogievskiy fed33bd175 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>
2019-10-28 11:22:30 +01:00
..
2018-09-25 15:50:15 +02:00
2019-10-24 19:26:05 +02:00
2018-10-02 18:47:55 +02:00
2019-08-16 13:31:52 +02:00
2019-09-11 08:46:17 +02:00
2019-08-21 16:29:57 +02:00
2019-02-07 15:49:08 +02:00
2018-12-20 10:29:08 +01:00
2019-09-16 17:13:06 +02:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00