Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/filecorefs At least fetch the mount data pointer befo...



details:   https://anonhg.NetBSD.org/src/rev/3d15383f8e19
branches:  trunk
changeset: 325442:3d15383f8e19
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Dec 25 11:11:55 2013 +0000

description:
At least fetch the mount data pointer before using it.
Coverity CID 274525

diffstat:

 sys/fs/filecorefs/filecore_vfsops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ed7f717f1bf4 -r 3d15383f8e19 sys/fs/filecorefs/filecore_vfsops.c
--- a/sys/fs/filecorefs/filecore_vfsops.c       Wed Dec 25 02:49:52 2013 +0000
+++ b/sys/fs/filecorefs/filecore_vfsops.c       Wed Dec 25 11:11:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecore_vfsops.c,v 1.72 2013/11/23 13:35:36 christos Exp $    */
+/*     $NetBSD: filecore_vfsops.c,v 1.73 2013/12/25 11:11:55 mlelstv Exp $     */
 
 /*-
  * Copyright (c) 1994 The Regents of the University of California.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.72 2013/11/23 13:35:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_vfsops.c,v 1.73 2013/12/25 11:11:55 mlelstv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -290,6 +290,7 @@
        if ((mp->mnt_flag & MNT_UPDATE) == 0)
                error = filecore_mountfs(devvp, mp, l, args);
        else {
+               fcmp = VFSTOFILECORE(mp);
                if (devvp != fcmp->fc_devvp)
                        error = EINVAL; /* needs translation */
                else



Home | Main Index | Thread Index | Old Index