]> Git Repo - qemu.git/commitdiff
nfs: Fix error path in nfs_options_qdict_to_qapi()
authorKevin Wolf <[email protected]>
Wed, 16 May 2018 16:10:34 +0000 (18:10 +0200)
committerJeff Cody <[email protected]>
Wed, 16 May 2018 17:37:47 +0000 (13:37 -0400)
Don't throw away local_err, but propagate it to errp.

Signed-off-by: Kevin Wolf <[email protected]>
Message-id: 20180516161034[email protected]
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
block/nfs.c

index 66fddf12d415cbf374f4d5471f5c4a0d86fbb9c7..4ee2ad59d948283e3812b1d6e377d30f3ea5e481 100644 (file)
@@ -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;
     }
 
This page took 0.026617 seconds and 4 git commands to generate.