summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
index bb92d41..76491b8 100644
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -435,8 +435,10 @@ g_ctl_req(void *arg, int flag __unused)
g_topology_assert();
req = arg;
mp = gctl_get_class(req, "class");
- if (mp == NULL)
+ if (mp == NULL) {
+ gctl_error(req, "Class not found");
return;
+ }
verb = gctl_get_param(req, "verb", NULL);
if (mp->ctlreq == NULL)
gctl_error(req, "Class takes no requests");
OpenPOWER on IntegriCloud