svn commit: r363528 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sat Jul 25 15:34:30 UTC 2020


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);
 }
 


More information about the svn-src-head mailing list