diff options
author | Lucas Stach <dev@lynxeye.de> | 2015-04-13 20:42:25 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2015-04-16 13:45:52 +0200 |
commit | 8ab74b693de8b22f6f9b48ac80b6a3a013ddc55a (patch) | |
tree | 11c1cefb897f39885b142842d8afe02e770a7e9f | |
parent | 3bc4dd2c2d5d5431a690e1137d3c8403c805525c (diff) | |
download | pciutils-8ab74b693de8b22f6f9b48ac80b6a3a013ddc55a.tar.gz |
Fix broken backward compat struct translation for pci filters
This seems to be a copy&paste error in both directions of the
compat translation.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
-rw-r--r-- | lib/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filter.c b/lib/filter.c index 55eb682..375293a 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -163,7 +163,7 @@ pci_filter_import_v30(struct pci_filter_v30 *old, struct pci_filter *new) { new->domain = old->domain; new->bus = old->bus; - new->slot = old->bus; + new->slot = old->slot; new->func = old->func; new->vendor = old->vendor; new->device = old->device; @@ -175,7 +175,7 @@ pci_filter_export_v30(struct pci_filter *new, struct pci_filter_v30 *old) { old->domain = new->domain; old->bus = new->bus; - old->slot = new->bus; + old->slot = new->slot; old->func = new->func; old->vendor = new->vendor; old->device = new->device; |