aboutsummaryrefslogtreecommitdiff
path: root/block/vmdk.c
diff options
context:
space:
mode:
authorCorey Bryant <coreyb@linux.vnet.ibm.com>2012-08-14 16:43:46 -0400
committerKevin Wolf <kwolf@redhat.com>2012-08-15 10:48:57 +0200
commit2e1e79dae7a7e0a3d698fbd359d75e3a0239bdaa (patch)
treea811ed28427ba314c33b17d739d9093e3ecd0b1c /block/vmdk.c
parent6165f4d85d92e15b6aebdeeb2559dc687b0353c7 (diff)
downloadqemu-2e1e79dae7a7e0a3d698fbd359d75e3a0239bdaa.zip
qemu-2e1e79dae7a7e0a3d698fbd359d75e3a0239bdaa.tar.gz
qemu-2e1e79dae7a7e0a3d698fbd359d75e3a0239bdaa.tar.bz2
block: Convert close calls to qemu_close
This patch converts all block layer close calls, that correspond to qemu_open calls, to qemu_close. Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vmdk.c')
-rw-r--r--block/vmdk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vmdk.c b/block/vmdk.c
index 557dc1b..daee426 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1258,7 +1258,7 @@ static int vmdk_create_extent(const char *filename, int64_t filesize,
ret = 0;
exit:
- close(fd);
+ qemu_close(fd);
return ret;
}
@@ -1506,7 +1506,7 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options)
}
ret = 0;
exit:
- close(fd);
+ qemu_close(fd);
return ret;
}