aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vinum/vinumconfig.c')
-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 06850c8865c9..727660eae497 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 */