Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2009 16:32:58 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191991 - head/sys/kern
Message-ID:  <200905111632.n4BGWwCx096290@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Mon May 11 16:32:58 2009
New Revision: 191991
URL: http://svn.freebsd.org/changeset/base/191991

Log:
  Fix a kernel compilation error, introduced after r191990, by defining
  thread with curthread in the AUDIT case.
  
  Reported by:	dchagin

Modified:
  head/sys/kern/vfs_lookup.c

Modified: head/sys/kern/vfs_lookup.c
==============================================================================
--- head/sys/kern/vfs_lookup.c	Mon May 11 15:33:26 2009	(r191990)
+++ head/sys/kern/vfs_lookup.c	Mon May 11 16:32:58 2009	(r191991)
@@ -457,6 +457,9 @@ lookup(struct nameidata *ndp)
 	int dvfslocked;			/* VFS Giant state for parent */
 	int tvfslocked;
 	int lkflags_save;
+#ifdef AUDIT
+	struct thread *td = curthread;
+#endif
 	
 	/*
 	 * Setup: break out flag bits into variables.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905111632.n4BGWwCx096290>