mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
DOnt allow getting caps from other than master and slave device :)
This commit is contained in:
parent
2b68d77fdd
commit
e5f8aed520
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue