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>
This commit is contained in:
Eric Ren 2019-06-11 21:44:40 +08:00 committed by Dr. David Alan Gilbert
parent b7ed733a38
commit fc3f0041b4
1 changed files with 0 additions and 1 deletions

View File

@ -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;