Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/ntfs CID 975205: Unchecked return value



details:   https://anonhg.NetBSD.org/src/rev/2d0146f50cb5
branches:  trunk
changeset: 325187:2d0146f50cb5
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 10 18:20:32 2013 +0000

description:
CID 975205: Unchecked return value

diffstat:

 sys/fs/ntfs/ntfs_vfsops.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 265e4448562c -r 2d0146f50cb5 sys/fs/ntfs/ntfs_vfsops.c
--- a/sys/fs/ntfs/ntfs_vfsops.c Tue Dec 10 18:15:43 2013 +0000
+++ b/sys/fs/ntfs/ntfs_vfsops.c Tue Dec 10 18:20:32 2013 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index