diff options
author | Eric Ren <renzhen@linux.alibaba.com> | 2019-06-11 21:44:40 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:37 +0000 |
commit | fc3f0041b43b6c64aa97b3558a6abe1a10028354 (patch) | |
tree | 4f046cc0686d656b518aa8720a1a6322c1507295 /tools/virtiofsd | |
parent | b7ed733a3841c4d489d3bd6ca7ed23c84db119c2 (diff) | |
download | qemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.zip qemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.tar.gz qemu-fc3f0041b43b6c64aa97b3558a6abe1a10028354.tar.bz2 |
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>
Diffstat (limited to 'tools/virtiofsd')
-rw-r--r-- | tools/virtiofsd/passthrough_ll.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index e8dc5c7..05b5f89 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; |