]> Git Repo - qemu.git/commit - block/qcow2-refcount.c
qcow2: Handle failure for potentially large allocations
authorKevin Wolf <[email protected]>
Tue, 20 May 2014 15:12:47 +0000 (17:12 +0200)
committerKevin Wolf <[email protected]>
Fri, 15 Aug 2014 13:07:15 +0000 (15:07 +0200)
commitde82815db1c89da058b7fb941dab137d6d9ab738
tree782b541f1a0c5d154d2c8a166306e7407094bf9a
parent0df93305f21712e975ab5df260cc5a91e5daafca
qcow2: Handle failure for potentially large allocations

Some code in the block layer makes potentially huge allocations. Failure
is not completely unexpected there, so avoid aborting qemu and handle
out-of-memory situations gracefully.

This patch addresses the allocations in the qcow2 block driver.

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
block/qcow2-cache.c
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2-snapshot.c
block/qcow2.c
This page took 0.02447 seconds and 4 git commands to generate.