aboutsummaryrefslogtreecommitdiff
path: root/xen-hvm.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-04-01 17:57:29 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-04-01 17:57:29 +0100
commit60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c (patch)
tree518a45ba779a1069dac8c6e7c08e50de6838b5bb /xen-hvm.c
parentb8a86c4ac4d04c106ba38fbd707041cba334a155 (diff)
downloadqemu-60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c.zip
qemu-60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c.tar.gz
qemu-60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c.tar.bz2
hw/arm/highbank: Fix resource leak and wrong image loading
Coverity reports a resource leak for sysboot_filename which is allocated by qemu_find_file. In addition, that name is used to get the size of the image, but a different image name was used to load it. In addition, instead of passing the maximum allowed image size the actual image size was passed to load_image_targphys. Fix all three issues. Signed-off-by: Stefan Weil <sw@weilnetz.de> Message-id: 1426326781-2488-1-git-send-email-sw@weilnetz.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'xen-hvm.c')
0 files changed, 0 insertions, 0 deletions