summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-04 21:23:46 +0000
committerphk <phk@FreeBSD.org>2003-09-04 21:23:46 +0000
commit862461d8b4f8dd14784730a3274b1b980b928799 (patch)
tree9f2db415bb2c1dada698c06873420da3f0476ff5
parent2068a465a8323b1a8d60d4950ea62fa843f46081 (diff)
downloadFreeBSD-src-862461d8b4f8dd14784730a3274b1b980b928799.zip
FreeBSD-src-862461d8b4f8dd14784730a3274b1b980b928799.tar.gz
Make sure to return ENOIOCTL if the ioctl is not handled.
-rw-r--r--sys/geom/geom_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index 8da252f..ef822e1 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -330,8 +330,8 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
default:
if (cp->provider->geom->ioctl != NULL) {
error = cp->provider->geom->ioctl(cp->provider, cmd, data, td);
- if (error != ENOIOCTL)
- return (error);
+ } else {
+ error = ENOIOCTL;
}
}
OpenPOWER on IntegriCloud