Blame 0092-virtiofsd-fix-incorrect-error-handling-in-lo_do_look.patch

1d442b
From: Eric Ren <renzhen@linux.alibaba.com>
1d442b
Date: Mon, 27 Jan 2020 19:02:01 +0000
1d442b
Subject: [PATCH] virtiofsd: fix incorrect error handling in lo_do_lookup
1d442b
MIME-Version: 1.0
1d442b
Content-Type: text/plain; charset=UTF-8
1d442b
Content-Transfer-Encoding: 8bit
1d442b
1d442b
Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
1d442b
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
(cherry picked from commit fc3f0041b43b6c64aa97b3558a6abe1a10028354)
1d442b
---
1d442b
 tools/virtiofsd/passthrough_ll.c | 1 -
1d442b
 1 file changed, 1 deletion(-)
1d442b
1d442b
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
1d442b
index e8dc5c7320..05b5f898db 100644
1d442b
--- a/tools/virtiofsd/passthrough_ll.c
1d442b
+++ b/tools/virtiofsd/passthrough_ll.c
1d442b
@@ -814,7 +814,6 @@ static int lo_do_lookup(fuse_req_t req, fuse_ino_t parent, const char *name,
1d442b
         close(newfd);
1d442b
         newfd = -1;
1d442b
     } else {
1d442b
-        saverr = ENOMEM;
1d442b
         inode = calloc(1, sizeof(struct lo_inode));
1d442b
         if (!inode) {
1d442b
             goto out_err;