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:
parent
b7ed733a38
commit
fc3f0041b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user