]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64 Fix unbalanced pci_dev_put in EEH code
authorPaul Mackerras <paulus@samba.org>
Mon, 23 Aug 2004 05:32:41 +0000 (22:32 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:32:41 +0000 (22:32 -0700)
commit7c1645c59af34735c271de90ddda27b0c9002331
treece5643b26efa5df17b07d9960a74c7112c5f7da4
parent8a163c94ce303a3933545de049b044d9034078c2
[PATCH] ppc64 Fix unbalanced pci_dev_put in EEH code

The EEH code currently can end up doing an extra pci_dev_put() in the case
where we hot-unplug a card for which we are ignoring EEH errors (e.g.  a
graphics card).  This patch fixes that problem by only maintaining a
reference to the PCI device if we have entered any of its resource
addresses into our address -> PCI device cache.  This patch is based on an
earlier patch by Linas Vepstas.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/eeh.c