diff options
author | 2014-09-18 18:17:44 +0300 | |
---|---|---|
committer | 2014-09-22 12:09:31 +0400 | |
commit | a011898d25b8a26a311d56dfe37e8d3a4374ec65 (patch) | |
tree | d8f23dafc81a6be1247e8e4e06302929676f58f2 /target-openrisc/exception.c | |
parent | vl: Print maxmem in hex format for error message (diff) | |
download | qemu-a011898d25b8a26a311d56dfe37e8d3a4374ec65.tar.xz qemu-a011898d25b8a26a311d56dfe37e8d3a4374ec65.zip |
block: allow creation of fixed vhdx images
When trying to create a fixed vhd image qemu-img will return the
following error:
qemu-img: test.vhdx: Could not create image: Cannot allocate memory
This happens because of a incorrect check in vhdx.c. Specifficaly,
in vhdx_create_bat(), after allocating memory for the BAT entry,
there is a check to determine if the allocation was unsuccsessful.
The error comes from the fact that it checks if s->bat isn't NULL,
which is true in case of succsessful allocation, and exits with
error ENOMEM.
Signed-off-by: Adelina Tuvenie <atuvenie@cloudbasesolutions.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-openrisc/exception.c')
0 files changed, 0 insertions, 0 deletions