nfs: Fix error path in nfs_options_qdict_to_qapi()
PATCH 1/1 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 <[email protected]>
--- block/nfs.c | 1 + 1 file changed, 1 insertion(+)
block/nfs.c +1 -0
@@ -571,6 +571,7 @@ static BlockdevOptionsNfs *nfs_options_qdict_to_qapi(QDict *options,qobject_unref (crumpled);if (local_err) { +error_propagate (errp, local_err);return NULL ; }
Signature · 1 line
2.13.6
Quoted 6 lines · Kevin Wolf
Don't throw away
local_err, but propagate it to errp.Signed-off-by Kevin Wolf <[email protected]>--- block/nfs.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Eric Blake <[email protected]>
Quoted 14 lines
block/nfs.c +1
-0@@ -571,6 +571,7 @@ static BlockdevOptionsNfs *nfs_options_qdict_to_qapi(QDict *options,qobject_unref (crumpled);if (local_err) { +error_propagate (errp, local_err);return NULL ; }
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Jeff Cody
AppliedQuoted 22 lines · Kevin Wolf
Don't throw away
local_err, but propagate it to errp.Signed-off-by Kevin Wolf <[email protected]>--- block/nfs.c | 1 + 1 file changed, 1 insertion(+)block/nfs.c +1
-0@@ -571,6 +571,7 @@ static BlockdevOptionsNfs *nfs_options_qdict_to_qapi(QDict *options,qobject_unref (crumpled);if (local_err) { +error_propagate (errp, local_err);return NULL ; }Signature · 1 line
2.13.6
Thanks,
Applied to my block branch:
git://github.com/codyprime/qemu-kvm-jtc block
-Jeff