mirror: Fix error path for dirty bitmap creation
commit88f9d1b3d2fa8df276b2f75dcbd7fb78ed08be20
authorKevin Wolf <kwolf@redhat.com>
Mon, 6 Mar 2017 15:12:44 +0000 (6 16:12 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 7 Mar 2017 13:53:28 +0000 (7 14:53 +0100)
treea0515934b43057228edfb2a5ef09b9d3859f235a
parent0bf74767ff7f0ae23615162807961c5d7e73507c
mirror: Fix error path for dirty bitmap creation

mirror_top_bs must be removed from the graph again when creating the
dirty bitmap fails.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/mirror.c