Skip to content

Commit

Permalink
fbsd-device: Hopefully fixed a bug in fbsd_scan()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gollux committed Dec 31, 2017
1 parent b2a4552 commit 58d9f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fbsd-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58d9f25

Please sign in to comment.