From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38455 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvveT-0000ux-QM for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:52:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvveS-0003oc-K4 for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:52:25 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:48167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvveS-0003oP-2u for qemu-devel@nongnu.org; Sat, 05 Mar 2011 12:52:24 -0500 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id p25HlkCq027016 for ; Sun, 6 Mar 2011 04:47:46 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p25HqMJb1966168 for ; Sun, 6 Mar 2011 04:52:22 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p25HqL3e019449 for ; Sun, 6 Mar 2011 04:52:22 +1100 From: "Aneesh Kumar K.V" Date: Sat, 5 Mar 2011 23:22:08 +0530 Message-Id: <1299347533-17047-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1299347533-17047-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1299347533-17047-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH -V3 3/8] hw/9pfs: Use v9fs_do_close instead of close List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" we should use the local abstraction instead of directly calling close. Signed-off-by: Aneesh Kumar K.V --- 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