diff options
author | phk <phk@FreeBSD.org> | 2002-12-17 09:44:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-17 09:44:10 +0000 |
commit | 8a25281415f7657c62cbc31d8977c1a5d88c5315 (patch) | |
tree | ac5bd510ba16c5e5c8ab4023ef9625fe16a8c2c2 /sys/geom/geom_mbr.c | |
parent | ef296549a5bb21d569ccd1fc9331d7b6433f87db (diff) | |
download | FreeBSD-src-8a25281415f7657c62cbc31d8977c1a5d88c5315.zip FreeBSD-src-8a25281415f7657c62cbc31d8977c1a5d88c5315.tar.gz |
Remember to hold topology lock when we change things.
Spotted by: kuriyama
Diffstat (limited to 'sys/geom/geom_mbr.c')
-rw-r--r-- | sys/geom/geom_mbr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 8c21fa6..c193846 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -274,7 +274,9 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist) printf("Ignoring known bogus MBR #1\n"); break; } + g_topology_lock(); g_mbr_modify(gp, ms, dp); + g_topology_unlock(); break; } g_topology_lock(); |