diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c index 4044bc7ef83c..f1cbee62596f 100644 --- a/sys/dev/null/null.c +++ b/sys/dev/null/null.c @@ -92,7 +92,7 @@ null_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) int error; if (cmd != DIOCSKERNELDUMP) - return (noioctl(dev, cmd, data, flags, td)); + return (ENOIOCTL); error = suser(td); if (error) return (error);