DOnt allow getting caps from other than master and slave device :)

This commit is contained in:
sos 2003-05-05 10:28:37 +00:00
parent e8a5c1a7c8
commit 9f473e058c

View File

@ -197,6 +197,9 @@ ata_cap_print(int fd, int channel, int device)
{
struct ata_cmd iocmd;
if (device < 0 || device > 1)
return ENXIO;
bzero(&iocmd, sizeof(struct ata_cmd));
iocmd.channel = channel;