Module Name: src Committed By: mlelstv Date: Wed Dec 25 11:11:55 UTC 2013
Modified Files: src/sys/fs/filecorefs: filecore_vfsops.c Log Message: At least fetch the mount data pointer before using it. Coverity CID 274525 To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/fs/filecorefs/filecore_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/filecorefs/filecore_vfsops.c diff -u src/sys/fs/filecorefs/filecore_vfsops.c:1.72 src/sys/fs/filecorefs/filecore_vfsops.c:1.73 --- src/sys/fs/filecorefs/filecore_vfsops.c:1.72 Sat Nov 23 13:35:36 2013 +++ src/sys/fs/filecorefs/filecore_vfsops.c Wed Dec 25 11:11:55 2013 @@ -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 @@ filecore_mount(struct mount *mp, const c 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