aboutsummaryrefslogtreecommitdiff
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 fea3c2fc89a8..e1d7d0efeaae 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 */