diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-01-20 14:15:54 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 16:17:02 -0800 |
commit | 0bf01c3c86d4b9ea279d6215420484db887f5db5 (patch) | |
tree | 5d967d0a3d4c81183c2782a1786cdcd0aedcd872 /drivers/pci/hotplug/shpchp.h | |
parent | 41a68a748bbc61f5bcea999e33ba72926dfbe6f7 (diff) | |
download | talos-op-linux-0bf01c3c86d4b9ea279d6215420484db887f5db5.tar.gz talos-op-linux-0bf01c3c86d4b9ea279d6215420484db887f5db5.zip |
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 <jslaby@suse.cz>
Cc: Scott Murray <scott@spiteful.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/shpchp.h')
0 files changed, 0 insertions, 0 deletions