diff options
| author | Fam Zheng | 2018-07-03 04:37:56 +0200 |
|---|---|---|
| committer | Jeff Cody | 2018-07-03 05:23:45 +0200 |
| commit | d4d3e5a0d53a57282955e8a3ed7acc1ca90552d9 (patch) | |
| tree | 02d2967cc330109319d345ef27bdcc17459c2b39 /include/block | |
| parent | Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180702' into staging (diff) | |
| download | qemu-d4d3e5a0d53a57282955e8a3ed7acc1ca90552d9.tar.gz qemu-d4d3e5a0d53a57282955e8a3ed7acc1ca90552d9.tar.xz qemu-d4d3e5a0d53a57282955e8a3ed7acc1ca90552d9.zip | |
block: Fix parameter checking in bdrv_co_copy_range_internal
src may be NULL if BDRV_REQ_ZERO_WRITE flag is set, in this case only
check dst and dst->bs. This bug was introduced when moving in the
request tracking code from bdrv_co_copy_range, in 37aec7d75eb.
This especially fixes the possible segfault when initializing src_bs
with a NULL src.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 20180703023758.14422-2-famz@redhat.com
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions
