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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114730

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;