From: Matthew Wilcox Date: Tue, 21 Oct 2008 01:13:08 +0000 (-0600) Subject: PCI: Fix reference counting bug X-Git-Tag: v2.6.28-rc1~29^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4ed02fae78bf6cea0b22edd34a67df972f29832;p=pandora-kernel.git PCI: Fix reference counting bug pci_get_subsys() will decrement the reference count of the device that it starts searching from. Unfortunately, the pci_find_device() interface will already have decremented the reference count of the device earlier, so the device will end up losing all reference counts and be freed. We can fix this by incrementing the reference count of the device to start searching from before calling pci_get_subsys(). Signed-off-by: Matthew Wilcox Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed