Module Name: src Committed By: tron Date: Wed Apr 4 19:52:48 UTC 2012
Modified Files: src/sys/ufs/ufs: ufs_vfsops.c Log Message: Assert that we can a valid inode when looking up a file handle. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/ufs/ufs/ufs_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/ufs/ufs/ufs_vfsops.c diff -u src/sys/ufs/ufs/ufs_vfsops.c:1.50 src/sys/ufs/ufs/ufs_vfsops.c:1.51 --- src/sys/ufs/ufs/ufs_vfsops.c:1.50 Wed Feb 1 05:34:43 2012 +++ src/sys/ufs/ufs/ufs_vfsops.c Wed Apr 4 19:52:48 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_vfsops.c,v 1.50 2012/02/01 05:34:43 dholland Exp $ */ +/* $NetBSD: ufs_vfsops.c,v 1.51 2012/04/04 19:52:48 tron Exp $ */ /* * Copyright (c) 1991, 1993, 1994 @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ufs_vfsops.c,v 1.50 2012/02/01 05:34:43 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ufs_vfsops.c,v 1.51 2012/04/04 19:52:48 tron Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -223,6 +223,7 @@ ufs_fhtovp(struct mount *mp, struct ufid return (error); } ip = VTOI(nvp); + KASSERT(ip != NULL); if (ip->i_mode == 0 || ip->i_gen != ufhp->ufid_gen) { vput(nvp); *vpp = NULLVP;