aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-05-16 18:10:34 +0200
committerJeff Cody <jcody@redhat.com>2018-05-16 13:37:47 -0400
commit54b7af4369a37afbd82573d0dcfb27febdb6dd24 (patch)
treec9b724c7b00847393a8c0d6d0f955a3d25eb12fb /block
parent4c7e813ce964e230bb55cf4afc862ccb091ca3a3 (diff)
downloadqemu-54b7af4369a37afbd82573d0dcfb27febdb6dd24.zip
qemu-54b7af4369a37afbd82573d0dcfb27febdb6dd24.tar.gz
qemu-54b7af4369a37afbd82573d0dcfb27febdb6dd24.tar.bz2
nfs: Fix error path in nfs_options_qdict_to_qapi()
Don't throw away local_err, but propagate it to errp. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20180516161034.27440-1-kwolf@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/nfs.c b/block/nfs.c
index 66fddf1..4ee2ad5 100644
--- a/block/nfs.c
+++ b/block/nfs.c
@@ -570,6 +570,7 @@ static BlockdevOptionsNfs *nfs_options_qdict_to_qapi(QDict *options,
qobject_unref(crumpled);
if (local_err) {
+ error_propagate(errp, local_err);
return NULL;
}