summaryrefslogtreecommitdiffstats
path: root/include/exec/memory-internal.h
diff options
context:
space:
mode:
authorMax Reitz2014-03-10 23:44:07 +0100
committerStefan Hajnoczi2014-03-13 14:23:27 +0100
commitdba2855572c746836ad90ce9154403b5929d996b (patch)
treee6f4d87aca3c7b9d74ebc6cacbba7040f4f6d8cb /include/exec/memory-internal.h
parentblock: Update image size in bdrv_invalidate_cache() (diff)
downloadqemu-dba2855572c746836ad90ce9154403b5929d996b.tar.gz
qemu-dba2855572c746836ad90ce9154403b5929d996b.tar.xz
qemu-dba2855572c746836ad90ce9154403b5929d996b.zip
qcow2: Check bs->drv in copy_sectors()
Before dereferencing bs->drv for a call to its member bdrv_co_readv(), copy_sectors() should check whether that pointer is indeed valid, since it may have been set to NULL by e.g. a concurrent write triggering the corruption prevention mechanism. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec/memory-internal.h')
0 files changed, 0 insertions, 0 deletions