summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2002-02-03 00:43:35 +0000
committerGreg Lehey <grog@FreeBSD.org>2002-02-03 00:43:35 +0000
commita61be41b5195e9e778a311713229d72282fdec33 (patch)
treed4db1bfbdfe6c86f718f485c7db7642f67e31045 /sys
parentf3004f7e88d024127b47cd03fce924484faa46f5 (diff)
downloadsrc-test2-a61be41b5195e9e778a311713229d72282fdec33.tar.gz
src-test2-a61be41b5195e9e778a311713229d72282fdec33.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vinum/vinumconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c
index 28af682f0f8a..2a4b99b1c191 100644
--- a/sys/dev/vinum/vinumconfig.c
+++ b/sys/dev/vinum/vinumconfig.c
@@ -99,6 +99,8 @@ throw_rude_remark(int error, char *msg,...)
static int finishing; /* don't recurse */
int was_finishing;
+ if ((vinum_conf.flags & VF_LOCKED) == 0) /* bug catcher */
+ panic ("throw_rude_remark: called without config lock");
va_start(ap, msg);
if ((ioctl_reply != NULL) /* we're called from the user */
&&(!(vinum_conf.flags & VF_READING_CONFIG))) { /* and not reading from disk: return msg */