Blame SOURCES/kvm-nfs-Fix-error-path-in-nfs_options_qdict_to_qapi.patch

357786
From 05767713c9bd39d7d035b8edce4f7149d23500b6 Mon Sep 17 00:00:00 2001
357786
From: Kevin Wolf <kwolf@redhat.com>
357786
Date: Tue, 26 Jun 2018 09:47:47 +0200
357786
Subject: [PATCH 18/89] nfs: Fix error path in nfs_options_qdict_to_qapi()
357786
357786
RH-Author: Kevin Wolf <kwolf@redhat.com>
357786
Message-id: <20180626094856.6924-5-kwolf@redhat.com>
357786
Patchwork-id: 81057
357786
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 04/73] nfs: Fix error path in nfs_options_qdict_to_qapi()
357786
Bugzilla: 1513543
357786
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
357786
RH-Acked-by: Max Reitz <mreitz@redhat.com>
357786
RH-Acked-by: Fam Zheng <famz@redhat.com>
357786
357786
Don't throw away local_err, but propagate it to errp.
357786
357786
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
357786
Message-id: 20180516161034.27440-1-kwolf@redhat.com
357786
Reviewed-by: Eric Blake <eblake@redhat.com>
357786
Reviewed-by: Jeff Cody <jcody@redhat.com>
357786
Signed-off-by: Jeff Cody <jcody@redhat.com>
357786
(cherry picked from commit 54b7af4369a37afbd82573d0dcfb27febdb6dd24)
357786
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 block/nfs.c | 1 +
357786
 1 file changed, 1 insertion(+)
357786
357786
diff --git a/block/nfs.c b/block/nfs.c
357786
index 1e12958..3059ef2 100644
357786
--- a/block/nfs.c
357786
+++ b/block/nfs.c
357786
@@ -568,6 +568,7 @@ static BlockdevOptionsNfs *nfs_options_qdict_to_qapi(QDict *options,
357786
     visit_free(v);
357786
 
357786
     if (local_err) {
357786
+        error_propagate(errp, local_err);
357786
         return NULL;
357786
     }
357786
 
357786
-- 
357786
1.8.3.1
357786