Skip to content

Commit

Permalink
virtiofsd: fix incorrect error handling in lo_do_lookup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Ren authored and dagrh committed Jan 23, 2020
1 parent b7ed733 commit fc3f004
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/virtiofsd/passthrough_ll.c
Expand Up @@ -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;
Expand Down

0 comments on commit fc3f004

Please sign in to comment.