summary refs log tree commit diff stats
path: root/hw/arm/sysbus-fdt.c
diff options
context:
space:
mode:
authorLiam Merwick <Liam.Merwick@oracle.com>2018-11-05 21:38:37 +0000
committerMax Reitz <mreitz@redhat.com>2018-11-12 17:49:21 +0100
commit2e2db260093d44130a8a2974aed3cc8149c0a08d (patch)
treee3bfe57726175510a239a1cc4a696eb18df30d3f /hw/arm/sysbus-fdt.c
parent602414d1232723d92836babe8d7014b57b93e4d9 (diff)
downloadfocaccia-qemu-2e2db260093d44130a8a2974aed3cc8149c0a08d.tar.gz
focaccia-qemu-2e2db260093d44130a8a2974aed3cc8149c0a08d.zip
qemu-img: assert block_job_get() does not return NULL in img_commit()
Although the function block_job_get() can return NULL, it would be a
serious bug if it did so (because the job yields before executing anything
(if it started successfully); but otherwise, commit_active_start() would
have returned an error).  However, as a precaution, before dereferencing
the 'job' pointer in img_commit() assert it is not NULL.

Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1541453919-25973-4-git-send-email-Liam.Merwick@oracle.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/arm/sysbus-fdt.c')
0 files changed, 0 insertions, 0 deletions