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

This commit is contained in:
Søren Schmidt 2003-05-05 10:28:37 +00:00
parent 2b68d77fdd
commit e5f8aed520

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;