summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-03-24 14:20:37 +0000
committerjhb <jhb@FreeBSD.org>2010-03-24 14:20:37 +0000
commit72e71a3c3d1b4e0f2920e9a3b1016af6018ea8c5 (patch)
tree77ddf50ba999127a7757b637094877463883c3d9 /sys/compat
parentdc22037ebfb53ece7a3ccf63b97a6b61362364b3 (diff)
downloadFreeBSD-src-72e71a3c3d1b4e0f2920e9a3b1016af6018ea8c5.zip
FreeBSD-src-72e71a3c3d1b4e0f2920e9a3b1016af6018ea8c5.tar.gz
Add missing Giant locking for the vfsconf list.
Submitted by: kib
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linprocfs/linprocfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 416efcf..c095012 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -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);
}
OpenPOWER on IntegriCloud