]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: allow zero-size allocations
authorJohn Snow <jsnow@redhat.com>
Mon, 11 Jan 2016 19:10:43 +0000 (14:10 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 11 Jan 2016 19:10:43 +0000 (14:10 -0500)
commitb1b66c3b5e89ac030e3f724791f57e9c352796ae
tree3da6973767182d7fd23534c93e76ea0951561ad3
parentb88641e236fbd0187858b8a974c44c2b4c450352
libqos: allow zero-size allocations

As part of streamlining the AHCI tests interface, it'd be nice
if specying a size of zero could be handled without special branches
and the allocator could handle this special case gracefully.

This lets me use the "ahci_io" macros for non-data commands, too,
which moves me forward towards shepherding all AHCI qtests into
a common set of commands in a unified pipeline.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1452282920-21550-6-git-send-email-jsnow@redhat.com
tests/ahci-test.c
tests/libqos/ahci.c
tests/libqos/malloc.c