From 655d6563216b885d1735e289f21bb0cd970fcee9 Mon Sep 17 00:00:00 2001 From: szaka Date: Fri, 8 Jun 2007 23:09:43 +0000 Subject: [PATCH] ntfs_umount() can return error --- libntfs-3g/volume.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index 95641043..87f39588 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -1258,19 +1258,19 @@ int ntfs_device_umount(ntfs_volume *vol, * function returns success. If it returns an error then nothing has been done * so it is safe to continue using @vol. */ -int ntfs_umount(ntfs_volume *vol, - const BOOL force __attribute__((unused))) +int ntfs_umount(ntfs_volume *vol, const BOOL force __attribute__((unused))) { struct ntfs_device *dev; + int ret; if (!vol) { errno = EINVAL; return -1; } dev = vol->dev; - __ntfs_volume_release(vol); + ret = __ntfs_volume_release(vol); ntfs_device_free(dev); - return 0; + return ret; } #ifdef HAVE_MNTENT_H