summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2014-09-30 09:09:11 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-30 13:30:51 +0200
commitbe4d57c1ea7f17b9cadb0150b330efd9b6026972 (patch)
treea33f866126446d10c955a1766c1965e359105bb1 /block
parent49e7e31aa00a9fb466203de19120fe5c4459cac0 (diff)
downloadhqemu-be4d57c1ea7f17b9cadb0150b330efd9b6026972.zip
hqemu-be4d57c1ea7f17b9cadb0150b330efd9b6026972.tar.gz
util: introduce bitmap_try_new
regular bitmap_new simply aborts if the memory allocation fails. bitmap_try_new returns NULL on failure and allows for proper error handling. Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud