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 37aec7d7. 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>
Loading
Please sign in to comment