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

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