diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-02 20:35:37 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-02 20:35:37 +0000 |
| commit | 786a6905ec863a8067db7960a52c2cc491fbb209 (patch) | |
| tree | 5d67955d9bdc8bdac369dd61ed02130ce34b3e80 | |
| parent | 6fa3a9dd4fbef9f24307925d5fa87f1631decc3c (diff) | |
Notes
| -rw-r--r-- | sys/geom/geom_ctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index bb92d4128ce1..76491b892252 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"); |
