]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Fix order in bdrv_replace_child()
authorMax Reitz <mreitz@redhat.com>
Wed, 22 May 2019 17:03:49 +0000 (19:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jun 2019 14:41:10 +0000 (16:41 +0200)
commit87ace5f8b6cbb9be14cf771a8962e32fd97f9660
treee2ed93c406853a959d9f2eaf9e011033d908577c
parenta193ad3b3b27eec6914bd3cd7dc4bff02f59177f
block: Fix order in bdrv_replace_child()

We have to start by applying the permission restrictions to new_bs
before we can loosen them on old_bs.  See the comment for the
explanation.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c