svn commit: r363072 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Fri Jul 10 09:24:28 UTC 2020
Author: mjg
Date: Fri Jul 10 09:24:27 2020
New Revision: 363072
URL: https://svnweb.freebsd.org/changeset/base/363072
Log:
vfs: fix early termination of kern_getfsstat
The kernel would unlock already unlocked mutex if the buffer got filled up
before the mount list ended.
Reported by: pho
Fixes: r363069 ("vfs: depessimize getfsstat when only the count is requested")
Modified:
head/sys/kern/vfs_syscalls.c
Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c Fri Jul 10 09:01:36 2020 (r363071)
+++ head/sys/kern/vfs_syscalls.c Fri Jul 10 09:24:27 2020 (r363072)
@@ -551,7 +551,7 @@ restart:
if (count == maxcount) {
vfs_unbusy(mp);
- break;
+ goto out;
}
mtx_lock(&mountlist_mtx);
More information about the svn-src-all
mailing list