Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2020 15:34:29 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363528 - head/sys/kern
Message-ID:  <202007251534.06PFYTHN037098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Sat Jul 25 15:34:29 2020
New Revision: 363528
URL: https://svnweb.freebsd.org/changeset/base/363528

Log:
  fd: put back FILEDESC_SUNLOCK to pwd_hold lost during rebase
  
  Reported by:	pho

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Sat Jul 25 15:19:38 2020	(r363527)
+++ head/sys/kern/kern_descrip.c	Sat Jul 25 15:34:29 2020	(r363528)
@@ -3354,6 +3354,7 @@ pwd_hold(struct thread *td)
 	FILEDESC_SLOCK(fdp);
 	pwd = pwd_hold_filedesc(fdp);
 	MPASS(pwd != NULL);
+	FILEDESC_SUNLOCK(fdp);
 	return (pwd);
 }
 



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