tools: allocate bitmaps in units of unsigned long
authorOlaf Hering <olaf@aepfle.de>
Wed, 9 Dec 2020 15:54:49 +0000 (16:54 +0100)
committerWei Liu <wl@xen.org>
Tue, 15 Dec 2020 16:23:14 +0000 (16:23 +0000)
commit8b90e311e0912b822621167621c515b41ea3d8e2
tree82f1620cceae3ac9c3c1eed5a40f0f81c8eae74a
parent924bf8c793cb1fee303c83f50632c68426cf8f12
tools: allocate bitmaps in units of unsigned long

Allocate enough memory so that the returned pointer can be safely
accessed as an array of unsigned long.

The actual bitmap size in units of bytes, as returned by bitmap_size,
remains unchanged.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/ctrl/xc_bitops.h