Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()
@ 2012-12-03 16:37 Betty Dall
  2012-12-03 17:40 ` Shuah Khan
  0 siblings, 1 reply; 7+ messages in thread
From: Betty Dall @ 2012-12-03 16:37 UTC (permalink / raw)
  To: bhelgaas, linux-kernel, linux-pci; +Cc: wangyijing, jiang.liu, Betty Dall

The function aer_recover_queue() makes a call to pci_get_domain_bus_and_slot().
That function is documented to require that the caller decrement the
reference count by calling pci_dev_put(). This patch adds the missing
call to pci_dev_put().

Signed-off-by: Betty Dall <betty.dall@hp.com>
---
 drivers/pci/pcie/aer/aerdrv_core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c
index af4e31c..43caf53 100644
--- a/drivers/pci/pcie/aer/aerdrv_core.c
+++ b/drivers/pci/pcie/aer/aerdrv_core.c
@@ -616,6 +616,7 @@ static void aer_recover_work_func(struct work_struct *work)
 			continue;
 		}
 		do_recovery(pdev, entry.severity);
+		pci_dev_put(pdev);
 	}
 }
 #endif
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-07 18:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 16:37 [PATCH] PCI AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put() Betty Dall
2012-12-03 17:40 ` Shuah Khan
2012-12-03 19:48   ` Alex Williamson
2012-12-03 20:00     ` Alex Williamson
2012-12-03 20:59       ` Shuah Khan
2013-01-07 18:46         ` Bjorn Helgaas
2012-12-03 20:01     ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox