block/stream: Swap backing file change order
commit8441d82d51e25c6a7d1ca92cecc42168f20af72a
authorMax Reitz <mreitz@redhat.com>
Wed, 3 Jul 2019 17:28:04 +0000 (3 19:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 15 Jul 2019 13:48:40 +0000 (15 15:48 +0200)
treede6b24f8f2d93df7482ae6cf1c081af65f387279
parent17a7c39248fc629469d6f66c6122db841b736bc7
block/stream: Swap backing file change order

bdrv_change_backing_file() can result in yields.  Therefore, @base may
no longer be the the backing_bs() of s->bottom afterwards.

Just swap the order of the two calls to fix this.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190703172813.6868-4-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/stream.c