]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: fix early termination of kern_getfsstat
authorMateusz Guzik <mjg@FreeBSD.org>
Fri, 10 Jul 2020 09:24:27 +0000 (09:24 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Fri, 10 Jul 2020 09:24:27 +0000 (09:24 +0000)
commit74f61caed59f2e944750480b011df7bc67fded13
tree3ea93c7137daef767610eca2c043efa005d67575
parent422f38d8ea13ed8f0247561cf3fdcd71d93ccdfc
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")
sys/kern/vfs_syscalls.c