Blame SOURCES/kvm-block-nbd-client-fix-nbd_reply_chunk_iter_receive.patch

383d26
From 49725596691ccd778e0d9328b2ee2064ec35595f Mon Sep 17 00:00:00 2001
383d26
From: John Snow <jsnow@redhat.com>
383d26
Date: Wed, 27 Mar 2019 17:23:01 +0100
383d26
Subject: [PATCH 123/163] block/nbd-client: fix nbd_reply_chunk_iter_receive
383d26
383d26
RH-Author: John Snow <jsnow@redhat.com>
383d26
Message-id: <20190327172308.31077-49-jsnow@redhat.com>
383d26
Patchwork-id: 85209
383d26
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 48/55] block/nbd-client: fix nbd_reply_chunk_iter_receive
383d26
Bugzilla: 1691009
383d26
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
383d26
RH-Acked-by: Max Reitz <mreitz@redhat.com>
383d26
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
383d26
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
383d26
383d26
Use exported report, not the variable to be reused (should not really
383d26
matter).
383d26
383d26
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
383d26
Reviewed-by: Eric Blake <eblake@redhat.com>
383d26
Message-Id: <20190201130138.94525-5-vsementsov@virtuozzo.com>
383d26
Signed-off-by: Eric Blake <eblake@redhat.com>
383d26
(cherry picked from commit 65e01d47653eb127fa917bd9d2f1824a00ab2de6)
383d26
Signed-off-by: John Snow <jsnow@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 block/nbd-client.c | 2 +-
383d26
 1 file changed, 1 insertion(+), 1 deletion(-)
383d26
383d26
diff --git a/block/nbd-client.c b/block/nbd-client.c
383d26
index 22e5042..5d22f8b 100644
383d26
--- a/block/nbd-client.c
383d26
+++ b/block/nbd-client.c
383d26
@@ -601,7 +601,7 @@ static bool nbd_reply_chunk_iter_receive(NBDClientSession *s,
383d26
     }
383d26
 
383d26
     /* Do not execute the body of NBD_FOREACH_REPLY_CHUNK for simple reply. */
383d26
-    if (nbd_reply_is_simple(&s->reply) || s->quit) {
383d26
+    if (nbd_reply_is_simple(reply) || s->quit) {
383d26
         goto break_loop;
383d26
     }
383d26
 
383d26
-- 
383d26
1.8.3.1
383d26