DOnt allow getting caps from other than master and slave device :)
This commit is contained in:
parent
e8a5c1a7c8
commit
9f473e058c
@ -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