block: Polish error handling of brdv_open2 (Jan Kiszka)
commit51d7c00c14550334ec140ce8f40e04ed4c88de57
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Mar 2009 23:00:29 +0000 (5 23:00 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Mar 2009 23:00:29 +0000 (5 23:00 +0000)
tree6de2992a6bdf30d2d96e8f882d2b9592067f3f19
parenta80bf99fa3dd829ecea88b9bfb4f7cf146208f07
block: Polish error handling of brdv_open2 (Jan Kiszka)

Make sure that we always delete temporary disk images on error, remove
obsolete malloc error checks and return proper error codes.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6702 c046a42c-6fe2-441c-8c8c-71466251a162
block.c