diff options
-rw-r--r-- | sys/dev/ata/ata-all.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 6b87979..80c921a 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -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: |