summaryrefslogtreecommitdiff
path: root/block/mirror.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-03-02 18:43:00 +0100
committerKevin Wolf <kwolf@redhat.com>2017-03-07 14:53:28 +0100
commit234ac1a9025bcfcc532449f72a97b3d4754d466c (patch)
tree3497b9e687a0575de82e3aeecd0d303c74b9b6ca /block/mirror.c
parent46181129eac9a56d9a948667282dd03d5015f096 (diff)
downloadqemu-234ac1a9025bcfcc532449f72a97b3d4754d466c.tar.gz
block: Handle permission errors in change_parent_backing_link()
Instead of just trying to change parents by parent over to reference @to instead of @from, and abort()ing whenever the permissions don't allow this, do proper permission checking beforehand and pass any error to the callers. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block/mirror.c')
0 files changed, 0 insertions, 0 deletions