Make sure to return ENOIOCTL if the ioctl is not handled.

This commit is contained in:
Poul-Henning Kamp 2003-09-04 21:23:46 +00:00
parent 4bbf46d65c
commit f03bec944d

View File

@ -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;
}
}