hw/9pfs: Use v9fs_do_close instead of close
we should use the local abstraction instead of directly calling close. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
9e5b2247ea
commit
9b54ffaab2
|
@ -1592,7 +1592,7 @@ static void v9fs_lcreate(void *opaque)
|
|||
if (err < 0) {
|
||||
fidp->fid_type = P9_FID_NONE;
|
||||
if (fidp->fs.fd > 0) {
|
||||
close(fidp->fs.fd);
|
||||
v9fs_co_close(pdu->s, fidp->fs.fd);
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
@ -2160,7 +2160,7 @@ static void v9fs_create(void *opaque)
|
|||
if (err < 0) {
|
||||
fidp->fid_type = P9_FID_NONE;
|
||||
if (fidp->fs.fd) {
|
||||
close(fidp->fs.fd);
|
||||
v9fs_co_close(pdu->s, fidp->fs.fd);
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue