Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 19:19:17 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r304495 - releng/11.0/sys/dev/filemon
Message-ID:  <201608191919.u7JJJHs6060909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Aug 19 19:19:17 2016
New Revision: 304495
URL: https://svnweb.freebsd.org/changeset/base/304495

Log:
  MFS r304474:
  
    MFC r304008:
  
      Avoid taking PROC_LOCK in syscalls if not being traced.
  
  Approved by:	re (XXX)

Modified:
  releng/11.0/sys/dev/filemon/filemon.c
Directory Properties:
  releng/11.0/   (props changed)

Modified: releng/11.0/sys/dev/filemon/filemon.c
==============================================================================
--- releng/11.0/sys/dev/filemon/filemon.c	Fri Aug 19 19:16:10 2016	(r304494)
+++ releng/11.0/sys/dev/filemon/filemon.c	Fri Aug 19 19:19:17 2016	(r304495)
@@ -137,6 +137,8 @@ filemon_proc_get(struct proc *p)
 {
 	struct filemon *filemon;
 
+	if (p->p_filemon == NULL)
+		return (NULL);
 	PROC_LOCK(p);
 	filemon = filemon_acquire(p->p_filemon);
 	PROC_UNLOCK(p);



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