Module Name:    src
Committed By:   christos
Date:           Tue Dec 10 18:20:32 UTC 2013

Modified Files:
        src/sys/fs/ntfs: ntfs_vfsops.c

Log Message:
CID 975205: Unchecked return value


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/fs/ntfs/ntfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/ntfs/ntfs_vfsops.c
diff -u src/sys/fs/ntfs/ntfs_vfsops.c:1.90 src/sys/fs/ntfs/ntfs_vfsops.c:1.91
--- src/sys/fs/ntfs/ntfs_vfsops.c:1.90	Sat Nov 23 08:35:36 2013
+++ src/sys/fs/ntfs/ntfs_vfsops.c	Tue Dec 10 13:20:32 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntfs_vfsops.c,v 1.90 2013/11/23 13:35:36 christos Exp $	*/
+/*	$NetBSD: ntfs_vfsops.c,v 1.91 2013/12/10 18:20:32 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.90 2013/11/23 13:35:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.91 2013/12/10 18:20:32 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -530,7 +530,8 @@ ntfs_unmount(
 	if (ntmp->ntm_devvp->v_type != VBAD)
 		spec_node_setmountedfs(ntmp->ntm_devvp, NULL);
 
-	vinvalbuf(ntmp->ntm_devvp, V_SAVE, NOCRED, l, 0, 0);
+	error = vinvalbuf(ntmp->ntm_devvp, V_SAVE, NOCRED, l, 0, 0);
+	KASSERT(error == 0);
 
 	/* lock the device vnode before calling VOP_CLOSE() */
 	vn_lock(ntmp->ntm_devvp, LK_EXCLUSIVE | LK_RETRY);

Reply via email to