Searched hist:"8 aecf1d1bd250a7346165de154f5ccc150ad1aa7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff 8aecf1d1bd250a7346165de154f5ccc150ad1aa7 Thu Aug 03 10:02:57 CDT 2017 Kevin Wolf <kwolf@redhat.com> block: Fix order in bdrv_replace_child()
Commit 8ee03995 refactored the code incorrectly and broke the release of permissions on the old BDS. Instead of changing the permissions to the new required values after removing the old BDS from the list of children, it only re-obtains the permissions it already had.
Change the order of operations so that the old BDS is removed again before calculating the new required permissions.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
|