From: Jiri Slaby Date: Wed, 20 Jan 2010 13:15:54 +0000 (+0100) Subject: PCI: hotplug/cpcihp, fix pci device refcounting X-Git-Tag: v2.6.34-rc1~287^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf01c3c86d4b9ea279d6215420484db887f5db5;p=pandora-kernel.git PCI: hotplug/cpcihp, fix pci device refcounting Stanse found an ommitted pci_dev_put on one error path in cpcihp_generic_init. The path is taken on !dev, but also when dev->hdr_type != PCI_HEADER_TYPE_BRIDGE. However it omits to pci_dev_put on the latter. As it is fine to pass NULL to pci_dev_put, put it in there uncoditionally. Signed-off-by: Jiri Slaby Cc: Scott Murray Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed