From: Eric Ren Date: Tue, 11 Jun 2019 13:44:40 +0000 (+0800) Subject: virtiofsd: fix incorrect error handling in lo_do_lookup X-Git-Tag: pull-nvme-20200902~467^2~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fc3f0041b43b6c64aa97b3558a6abe1a10028354;p=qemu-nvme.git virtiofsd: fix incorrect error handling in lo_do_lookup Signed-off-by: Eric Ren Reviewed-by: Daniel P. Berrangé Signed-off-by: Dr. David Alan Gilbert --- 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;