Greg KH ebca4f1bce PCI: fix reference leak in pci_get_dev_by_id()
Alex Chiang and Matthew Wilcox pointed out that pci_get_dev_by_id() does
not properly decrement the reference on the from pointer if it is
present, like the documentation for the function states it will.

It fixes a pretty bad leak in the hotplug core (we were leaking an
entire struct pci_dev for each function of each offlined card, the first
time around; subsequent onlines/offlines were ok).

Cc: Matthew Wilcox <matthew@wil.cx>
Cc: stable <stable@kernel.org>
Tested-by: Alex Chiang <achiang@hp.com>
Acked-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-08-21 15:22:46 -07:00
..
2008-04-20 21:47:02 -07:00
2008-04-20 21:47:06 -07:00
2008-04-20 21:47:13 -07:00
2008-06-10 14:37:03 -07:00
2006-12-01 14:36:56 -08:00
2008-08-07 15:33:36 -07:00
2008-04-20 21:47:03 -07:00
2008-03-03 10:47:14 -08:00
2008-06-25 16:05:13 -07:00
2008-06-25 16:05:13 -07:00
2008-06-10 14:37:03 -07:00