diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-05-18 16:59:54 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-08-25 20:16:42 +0530 |
commit | 9b54ffaab2e7cd09e7da47a9dc9b8f746ebcfe1b (patch) | |
tree | f40565c820c87c944851ef421f124edeae560c0c /hw/9pfs | |
parent | 9e5b2247eaf56f057402d99285cc76b0d3e8827f (diff) | |
download | qemu-9b54ffaab2e7cd09e7da47a9dc9b8f746ebcfe1b.zip qemu-9b54ffaab2e7cd09e7da47a9dc9b8f746ebcfe1b.tar.gz qemu-9b54ffaab2e7cd09e7da47a9dc9b8f746ebcfe1b.tar.bz2 |
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>
Diffstat (limited to 'hw/9pfs')
-rw-r--r-- | hw/9pfs/virtio-9p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 4ba2590..6529216 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -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; } |