diff options
author | Martin Mares <mj@ucw.cz> | 2017-12-31 18:24:15 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2017-12-31 18:24:15 +0100 |
commit | 58d9f25f25c0070c3c3df3073f375d87a9163e88 (patch) | |
tree | 3adfcd9832ae7624f5a5e89332becbe78e3a8966 | |
parent | b2a45526c9ec1b038894ff9cff95f358dfbc5cfb (diff) | |
download | pciutils-58d9f25f25c0070c3c3df3073f375d87a9163e88.tar.gz |
fbsd-device: Hopefully fixed a bug in fbsd_scan()
The previous version was obviously wrong: as Andriy Gapon pointed
out, we assign twice to t->dev, but never to t->func.
Not tested, though, as I have no FreeBSD system at hand.
-rw-r--r-- | lib/fbsd-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c index 78067dc..62a335a 100644 --- a/lib/fbsd-device.c +++ b/lib/fbsd-device.c @@ -143,7 +143,7 @@ fbsd_scan(struct pci_access *a) t = pci_alloc_dev(a); t->bus = matches[i].pc_sel.pc_bus; t->dev = matches[i].pc_sel.pc_dev; - t->dev = matches[i].pc_sel.pc_dev; + t->func = matches[i].pc_sel.pc_func; t->domain = matches[i].pc_sel.pc_domain; t->domain_16 = matches[i].pc_sel.pc_domain; t->vendor_id = matches[i].pc_vendor; |