make sure that ioctl's to ata use the proper cmd IOCATA...
Reviewed by: sos
This commit is contained in:
parent
a246f097d6
commit
3633dce05f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133358
@ -353,6 +353,9 @@ ata_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int32_t flag, struct threa
|
||||
caddr_t buf;
|
||||
int error = ENOTTY;
|
||||
|
||||
if (cmd != IOCATA)
|
||||
return error;
|
||||
|
||||
DROP_GIANT();
|
||||
switch (iocmd->cmd) {
|
||||
case ATAGMAXCHANNEL:
|
||||
|
Loading…
Reference in New Issue
Block a user