Add missing Giant locking for the vfsconf list.
Submitted by: kib
This commit is contained in:
parent
ac33b97078
commit
acfaf56efe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205592
@ -1235,11 +1235,13 @@ linprocfs_dofilesystems(PFS_FILL_ARGS)
|
||||
{
|
||||
struct vfsconf *vfsp;
|
||||
|
||||
mtx_lock(&Giant);
|
||||
TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) {
|
||||
if (vfsp->vfc_flags & VFCF_SYNTHETIC)
|
||||
sbuf_printf(sb, "nodev");
|
||||
sbuf_printf(sb, "\t%s\n", vfsp->vfc_name);
|
||||
}
|
||||
mtx_unlock(&Giant);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user