x86/PCI: pci quirks, fix pci refcounting
Stanse found a pci reference leak in quirk_amd_nb_node. Instead of putting nb_ht, there is a put of dev passed as an argument. http://stanse.fi.muni.cz/ Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
28760489a3
commit
748df9a4c6
|
@ -508,7 +508,7 @@ static void __init quirk_amd_nb_node(struct pci_dev *dev)
|
||||||
|
|
||||||
pci_read_config_dword(nb_ht, 0x60, &val);
|
pci_read_config_dword(nb_ht, 0x60, &val);
|
||||||
set_dev_node(&dev->dev, val & 7);
|
set_dev_node(&dev->dev, val & 7);
|
||||||
pci_dev_put(dev);
|
pci_dev_put(nb_ht);
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB,
|
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB,
|
||||||
|
|
Loading…
Reference in New Issue