summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/quirks.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-09-08 12:16:18 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-09 14:11:02 -0700
commit748df9a4c65625c386674c9b54dde73de6cc5af5 (patch)
tree016906f663e6c0c9da439882d711902f39a26781 /arch/x86/kernel/quirks.c
parent28760489a3f1e136c5ae8581c0fa8f63511f2f4c (diff)
downloadtalos-obmc-linux-748df9a4c65625c386674c9b54dde73de6cc5af5.tar.gz
talos-obmc-linux-748df9a4c65625c386674c9b54dde73de6cc5af5.zip
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>
Diffstat (limited to 'arch/x86/kernel/quirks.c')
-rw-r--r--arch/x86/kernel/quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/quirks.c b/arch/x86/kernel/quirks.c
index af71d06624bf..6c3b2c6fd772 100644
--- a/arch/x86/kernel/quirks.c
+++ b/arch/x86/kernel/quirks.c
@@ -508,7 +508,7 @@ static void __init quirk_amd_nb_node(struct pci_dev *dev)
pci_read_config_dword(nb_ht, 0x60, &val);
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,
OpenPOWER on IntegriCloud