mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV.
This commit is contained in:
parent
f1cf3def78
commit
36449dc48e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120510
@ -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 New Issue
Block a user