projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c3ed6
)
PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()
author
Betty Dall
<betty.dall@hp.com>
Sun, 13 Jan 2013 22:46:18 +0000
(15:46 -0700)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Sun, 13 Jan 2013 22:46:18 +0000
(15:46 -0700)
The function aer_recover_queue() calls pci_get_domain_bus_and_slot(), which
requires that the caller decrement the reference count with pci_dev_put().
This patch adds the missing call to pci_dev_put().
Signed-off-by: Betty Dall <betty.dall@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Shuah Khan <shuah.khan@hp.com>
CC: stable@vger.kernel.org
drivers/pci/pcie/aer/aerdrv_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pcie/aer/aerdrv_core.c
b/drivers/pci/pcie/aer/aerdrv_core.c
index 421bbc5fee324b485f409e7a025338bc524eecf5..564d97f94b6cd4d248b7cdad8b3b4e138144ff97 100644
(file)
--- a/
drivers/pci/pcie/aer/aerdrv_core.c
+++ b/
drivers/pci/pcie/aer/aerdrv_core.c
@@
-630,6
+630,7
@@
static void aer_recover_work_func(struct work_struct *work)
continue;
}
do_recovery(pdev, entry.severity);
+ pci_dev_put(pdev);
}
}
#endif