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