diff options
author | sos <sos@FreeBSD.org> | 2001-12-02 12:17:51 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-12-02 12:17:51 +0000 |
commit | 481b68dc0ffb225d8f3298b2073f95f33e67086e (patch) | |
tree | 040599b57802cbed9c4a642a76dd3982ab98fb5a /sys | |
parent | 8e33fb69fc45f4bb7cc91a88fc201e074c9eeaf9 (diff) | |
download | FreeBSD-src-481b68dc0ffb225d8f3298b2073f95f33e67086e.zip FreeBSD-src-481b68dc0ffb225d8f3298b2073f95f33e67086e.tar.gz |
Oops, lost a line in the previous commit.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 658024a..f3a533b 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -75,7 +75,8 @@ ata_find_dev(device_t dev, u_int32_t devid, u_int32_t revid) return 0; for (i = 0; i < nchildren; i++) { - if (pci_get_devid(children[i]) == devid && + if (pci_get_slot(dev) == pci_get_slot(child) && + pci_get_devid(children[i]) == devid && pci_get_revid(children[i]) >= revid) { free(children, M_TEMP); return 1; |