mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
81c452f998
commit
f064d42ef8
1 file changed
+1
-1
@@ -357,7 +357,7 @@ int pciback_config_add_field_offset(struct pci_dev *dev,
|
||||
void *tmp;
|
||||
|
||||
/* silently ignore duplicate fields */
|
||||
if (pciback_field_is_dup(dev, field->offset))
|
||||
if (pciback_field_is_dup(dev, field->offset + offset))
|
||||
goto out;
|
||||
|
||||
cfg_entry = kmalloc(sizeof(*cfg_entry), GFP_KERNEL);
|
||||
|
||||