diff options
author | Peter Lieven <pl@kamp.de> | 2014-09-30 09:09:11 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-30 13:30:51 +0200 |
commit | be4d57c1ea7f17b9cadb0150b330efd9b6026972 (patch) | |
tree | a33f866126446d10c955a1766c1965e359105bb1 /block/iscsi.c | |
parent | 49e7e31aa00a9fb466203de19120fe5c4459cac0 (diff) |
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/iscsi.c')
0 files changed, 0 insertions, 0 deletions