From e1703ef5ae92c28aa50f22f2178493e7eb60150d Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 1 Dec 2017 22:51:02 +0000 Subject: [PATCH] Plug a name cache lock leak. Reviewed by: mjg MFC after: 1 week Sponsored by: Dell EMC Isilon --- sys/kern/vfs_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index c963f8227f60..0ed71900709a 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1162,6 +1162,8 @@ retry_dotdot: SDT_PROBE3(vfs, namecache, lookup, miss, dvp, "..", NULL); mtx_unlock(dvlp); + if (dvlp2 != NULL) + mtx_unlock(dvlp2); return (0); } if ((ncp->nc_flag & NCF_ISDOTDOT) != 0) {