qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH -V2 3/6] hw/9pfs: Use v9fs_do_close instead of close


From: Aneesh Kumar K.V
Subject: [Qemu-devel] [PATCH -V2 3/6] hw/9pfs: Use v9fs_do_close instead of close
Date: Tue, 1 Mar 2011 12:08:51 +0530

we should use the local abstraction instead of
directly calling close.

Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
 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 811ac38..c4b0198 100644
--- a/hw/9pfs/virtio-9p.c
+++ b/hw/9pfs/virtio-9p.c
@@ -1873,7 +1873,7 @@ static void v9fs_post_lcreate(V9fsState *s, 
V9fsLcreateState *vs, int err)
         vs->fidp->fsmap.fid_type = P9_FID_NONE;
         err = -errno;
         if (vs->fidp->fsmap.fs.fd > 0) {
-            close(vs->fidp->fsmap.fs.fd);
+            v9fs_do_close(s, vs->fidp->fsmap.fs.fd);
         }
     }
 
@@ -2533,7 +2533,7 @@ static void v9fs_create_post_fstat(V9fsState *s, 
V9fsCreateState *vs, int err)
 {
     if (err) {
         vs->fidp->fsmap.fid_type = P9_FID_NONE;
-        close(vs->fidp->fsmap.fs.fd);
+        v9fs_do_close(s, vs->fidp->fsmap.fs.fd);
         err = -errno;
     }
     v9fs_post_create(s, vs, err);
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]