mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.
This commit is contained in:
parent
f1cf3def78
commit
36449dc48e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue