mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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
1 changed files with 0 additions and 1 deletions
|
@ -814,7 +814,6 @@ static int lo_do_lookup(fuse_req_t req, fuse_ino_t parent, const char *name,
|
||||||
close(newfd);
|
close(newfd);
|
||||||
newfd = -1;
|
newfd = -1;
|
||||||
} else {
|
} else {
|
||||||
saverr = ENOMEM;
|
|
||||||
inode = calloc(1, sizeof(struct lo_inode));
|
inode = calloc(1, sizeof(struct lo_inode));
|
||||||
if (!inode) {
|
if (!inode) {
|
||||||
goto out_err;
|
goto out_err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue