aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-09-20 14:55:35 +0300
committerKevin Wolf <kwolf@redhat.com>2021-10-06 10:25:55 +0200
commitf053b7e8005d7f72c2a8e686c4779f75b0ae631f (patch)
tree6f02a1143c37f024ba84d8cf1ced3b787a227561 /contrib
parent621d17378a40509757d5e03eb1c2f5305ff76df3 (diff)
downloadqemu-f053b7e8005d7f72c2a8e686c4779f75b0ae631f.zip
qemu-f053b7e8005d7f72c2a8e686c4779f75b0ae631f.tar.gz
qemu-f053b7e8005d7f72c2a8e686c4779f75b0ae631f.tar.bz2
block: bdrv_insert_node(): fix and improve error handling
- use ERRP_GUARD(): function calls error_prepend(), so it must use ERRP_GUARD(), otherwise error_prepend() would not be called when passed errp is error_fatal - drop error propagation, handle return code instead - for symmetry, do error_prepend() for the second failure Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210920115538.264372-3-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions