From 20bcce34f7f9c934943fbaa3b494fd1e79297a1f Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 13 Feb 2004 18:52:35 +0000 Subject: [PATCH] bio ops can be initiated from the buffer cache, td_proc may be NULL here. This is a degenerate case from earlier conversion work. cred is not used here so td_proc can be NULL. Reported-by: David Rhodus --- sys/vfs/nfs/nfs_bio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/vfs/nfs/nfs_bio.c b/sys/vfs/nfs/nfs_bio.c index 55de0b7826..8c66bbeab6 100644 --- a/sys/vfs/nfs/nfs_bio.c +++ b/sys/vfs/nfs/nfs_bio.c @@ -35,7 +35,7 @@ * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 * $FreeBSD: src/sys/nfs/nfs_bio.c,v 1.83.2.4 2002/12/29 18:19:53 dillon Exp $ - * $DragonFly: src/sys/vfs/nfs/nfs_bio.c,v 1.11 2003/08/20 09:56:33 rob Exp $ + * $DragonFly: src/sys/vfs/nfs/nfs_bio.c,v 1.12 2004/02/13 18:52:35 dillon Exp $ */ @@ -251,14 +251,10 @@ nfs_putpages(ap) off_t offset; int *rtvals; struct vnode *vp; - struct ucred *cred; struct nfsmount *nmp; struct nfsnode *np; vm_page_t *pages; - KKASSERT(td->td_proc); - cred = td->td_proc->p_ucred; - vp = ap->a_vp; np = VTONFS(vp); nmp = VFSTONFS(vp->v_mount); -- 2.41.0