]> git.ipfire.org Git - thirdparty/qemu.git/commit
Don't allow multiwrites against a block device without underlying medium
authorRyan Harper <ryanh@us.ibm.com>
Mon, 7 Mar 2011 16:01:04 +0000 (10:01 -0600)
committerJustin M. Forbes <jforbes@redhat.com>
Mon, 4 Apr 2011 19:24:29 +0000 (14:24 -0500)
commita0af597d00c27741a0bf99720209def055f45499
tree3cb13d3becec8c50e55d24ae85400d382ef4f4b9
parentd4b4ba03e86eeb697f04bf1173c29530e77e0ce5
Don't allow multiwrites against a block device without underlying medium

If the block device has been closed, we no longer have a medium to submit
IO against, check for this before submitting io.  This prevents a segfault
further in the code where we dereference elements of the block driver.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c