From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39214 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuJEw-0007c7-Bd for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuJEu-00035d-IV for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:39:22 -0500 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:35873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuJEu-00035L-0G for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:39:20 -0500 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp09.au.ibm.com (8.14.4/8.13.1) with ESMTP id p216d8pb013684 for ; Tue, 1 Mar 2011 17:39:08 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p216d7ZJ2330658 for ; Tue, 1 Mar 2011 17:39:07 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p216d7S2025694 for ; Tue, 1 Mar 2011 17:39:07 +1100 From: "Aneesh Kumar K.V" Date: Tue, 1 Mar 2011 12:08:51 +0530 Message-Id: <1298961534-8099-3-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1298961534-8099-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1298961534-8099-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH -V2 3/6] 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