DOnt allow getting caps from other than master and slave device :)
This commit is contained in:
parent
2b68d77fdd
commit
e5f8aed520
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114730
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user