bitmap: fix bitmap_fill with zero-sized bitmap
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 13 May 2019 08:12:00 +0000 (10:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 May 2019 08:12:00 +0000 (10:12 +0200)
commit93df28be2d4f620caf18109222d046355ac56327
treeebf89bc1a447139fe11c22c21d6641cdc7ad797b
parent29fa88969cfa0591b1606206bf79613a9e11c222
bitmap: fix bitmap_fill with zero-sized bitmap

When bitmap_fill(..., 0) is called, do not try to write anything. Before
this patch, it tried to write almost LONG_MAX, surely overwriting
something.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/bitmap.h