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

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