aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-02-02 15:49:55 +0300
committerEric Blake <eblake@redhat.com>2021-03-08 16:03:32 -0600
commit15ce94a68ca6730466c565c3d29971aab3087bf1 (patch)
tree823abc2a4f102ecbb4875513a9caf7493cee2242 /tests/qemu-iotests
parente6247c9c9f9e4d01b00036f017da53d130981727 (diff)
downloadqemu-15ce94a68ca6730466c565c3d29971aab3087bf1.zip
qemu-15ce94a68ca6730466c565c3d29971aab3087bf1.tar.gz
qemu-15ce94a68ca6730466c565c3d29971aab3087bf1.tar.bz2
block/qed: bdrv_qed_do_open: deal with errp
Always set errp on failure. The generic bdrv_open_driver supports driver functions which can return a negative value but forget to set errp. That's a strange thing. Let's improve bdrv_qed_do_open to not behave this way. This allows the simplification of code in bdrv_qed_co_invalidate_cache(). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <20210202124956.63146-14-vsementsov@virtuozzo.com> [eblake: commit message grammar tweak] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests')
0 files changed, 0 insertions, 0 deletions