From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlmYc-0005f3-6t for qemu-devel@nongnu.org; Sat, 05 Feb 2011 13:08:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlmYa-0007MK-Rl for qemu-devel@nongnu.org; Sat, 05 Feb 2011 13:08:26 -0500 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:42178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlmYa-0007Lw-65 for qemu-devel@nongnu.org; Sat, 05 Feb 2011 13:08:24 -0500 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp04.in.ibm.com (8.14.4/8.13.1) with ESMTP id p15I8KLn001330 for ; Sat, 5 Feb 2011 23:38:20 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p15I8KXV4448346 for ; Sat, 5 Feb 2011 23:38:20 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p15I8JUJ019270 for ; Sun, 6 Feb 2011 05:08:20 +1100 From: "Aneesh Kumar K.V" Date: Sat, 5 Feb 2011 23:38:09 +0530 Message-Id: <1296929291-11047-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1296929291-11047-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1296929291-11047-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH -V1 2/4] 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 86a32a4..2d9ca11 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