qemu_memalign: Allow small alignments
commite5354657a626b325c31888f33de88ac6d39e2fcb
authorKevin Wolf <kwolf@redhat.com>
Fri, 29 Nov 2013 20:29:17 +0000 (29 21:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:01 +0000 (24 17:40 +0100)
tree23fdaf1aa96d4ec78c9f72a9560c6c3f637da0f0
parent355ef4ac95a7a47d5c7201ccd910056a100d2fdf
qemu_memalign: Allow small alignments

The functions used by qemu_memalign() require an alignment that is at
least sizeof(void*). Adjust it if it is too small.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit@irqsave.net>
util/oslib-posix.c