make sure that ioctl's to ata use the proper cmd IOCATA...

Reviewed by:	sos
This commit is contained in:
John-Mark Gurney 2004-08-09 06:47:53 +00:00
parent a246f097d6
commit 3633dce05f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133358

View File

@ -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: