diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2020-11-06 15:42:39 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2020-12-18 12:35:55 +0100 |
commit | 74ad9a3b4da3bc2475c765d1926c655e9f8a0a20 (patch) | |
tree | 52f5b18b627e150bc92dec52c03507ad766edc02 /hw/misc/pci-testdev.c | |
parent | bb87e4d1c0c34d55c6fdecaf20b6f9640498e1ad (diff) | |
download | qemu-74ad9a3b4da3bc2475c765d1926c655e9f8a0a20.zip qemu-74ad9a3b4da3bc2475c765d1926c655e9f8a0a20.tar.gz qemu-74ad9a3b4da3bc2475c765d1926c655e9f8a0a20.tar.bz2 |
block: bdrv_set_perm() drop redundant parameters.
We should never set permissions other than cumulative permissions of
parents. During bdrv_reopen_multiple() we _check_ for synthetic
permissions but when we do _set_ the graph is already updated.
Add an assertion to bdrv_reopen_multiple(), other cases are more
obvious.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201106124241.16950-6-vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions