Skip to content
Commit c60a8ed8 authored by Alberto Garcia's avatar Alberto Garcia Committed by Michael Roth
Browse files

stream: fix crash in stream_start() when block_job_create() fails



The code that tries to reopen a BlockDriverState in stream_start()
when the creation of a new block job fails crashes because it attempts
to dereference a pointer that is known to be NULL.

This is a regression introduced in a170a91f,
likely because the code was copied from stream_complete().

Cc: qemu-stable@nongnu.org
Reported-by: default avatarKashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
Tested-by: default avatarKashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
(cherry picked from commit 525989a5)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent c79bef68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment