diff options
author | phk <phk@FreeBSD.org> | 2003-09-04 21:23:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-09-04 21:23:46 +0000 |
commit | 862461d8b4f8dd14784730a3274b1b980b928799 (patch) | |
tree | 9f2db415bb2c1dada698c06873420da3f0476ff5 /sys/geom/geom_dev.c | |
parent | 2068a465a8323b1a8d60d4950ea62fa843f46081 (diff) | |
download | FreeBSD-src-862461d8b4f8dd14784730a3274b1b980b928799.zip FreeBSD-src-862461d8b4f8dd14784730a3274b1b980b928799.tar.gz |
Make sure to return ENOIOCTL if the ioctl is not handled.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 4 |
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; } } |