- powerpc-pseries-bugfix-balance-calls-to-pci_device_put.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     powerpc/pseries: bugfix: balance calls to pci_device_put

has been removed from the -mm tree.  Its filename is

     powerpc-pseries-bugfix-balance-calls-to-pci_device_put.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Linas Vepstas <linas@xxxxxxxxxxxxxx>

Repeated calls to eeh_remove_device() can result in multiple (and thus
unbalanced) calls to pci_dev_put().  Make sure the pci_device_put() is
called only once (since there was only one call to the matching
pci_device_get()).

Signed-off-by: Linas Vepstas <linas@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/powerpc/platforms/pseries/eeh.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -puN arch/powerpc/platforms/pseries/eeh.c~powerpc-pseries-bugfix-balance-calls-to-pci_device_put arch/powerpc/platforms/pseries/eeh.c
--- 25/arch/powerpc/platforms/pseries/eeh.c~powerpc-pseries-bugfix-balance-calls-to-pci_device_put	Thu Apr  6 15:59:05 2006
+++ 25-akpm/arch/powerpc/platforms/pseries/eeh.c	Thu Apr  6 15:59:05 2006
@@ -957,8 +957,10 @@ static void eeh_remove_device(struct pci
 	pci_addr_cache_remove_device(dev);
 
 	dn = pci_device_to_OF_node(dev);
-	PCI_DN(dn)->pcidev = NULL;
-	pci_dev_put (dev);
+	if (PCI_DN(dn)->pcidev) {
+		PCI_DN(dn)->pcidev = NULL;
+		pci_dev_put (dev);
+	}
 }
 
 void eeh_remove_bus_device(struct pci_dev *dev)
_

Patches currently in -mm which might be from linas@xxxxxxxxxxxxxx are

pci-error-recovery-e100-network-device-driver.patch
e1000-prevent-statistics-from-getting-garbled-during-reset.patch
powerpc-pseries-clear-pci-failure-counter-if-no-new-failures.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux