summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Ren2019-06-11 15:44:40 +0200
committerDr. David Alan Gilbert2020-01-23 17:41:37 +0100
commitfc3f0041b43b6c64aa97b3558a6abe1a10028354 (patch)
tree4f046cc0686d656b518aa8720a1a6322c1507295
parentvirtiofsd: enable PARALLEL_DIROPS during INIT (diff)
downloadqemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.tar.gz
qemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.tar.xz
qemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.zip
virtiofsd: fix incorrect error handling in lo_do_lookup
Signed-off-by: Eric Ren <renzhen@linux.alibaba.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r--tools/virtiofsd/passthrough_ll.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
index e8dc5c7320..05b5f898db 100644
--- a/tools/virtiofsd/passthrough_ll.c
+++ b/tools/virtiofsd/passthrough_ll.c
@@ -814,7 +814,6 @@ static int lo_do_lookup(fuse_req_t req, fuse_ino_t parent, const char *name,
close(newfd);
newfd = -1;
} else {
- saverr = ENOMEM;
inode = calloc(1, sizeof(struct lo_inode));
if (!inode) {
goto out_err;