Jiri Slaby 0bf01c3c86 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>
2010-02-22 16:17:02 -08:00
..
2010-02-10 12:07:28 -07:00
2009-12-15 08:53:34 -08:00
2010-01-29 21:03:09 +01:00
2010-02-11 13:59:42 -08:00
2009-12-09 17:14:38 +11:00
2010-02-02 18:11:21 -08:00
2010-02-03 16:55:20 -05:00
2009-12-15 08:53:25 -08:00
2010-02-16 15:11:10 -08:00
2010-01-13 10:01:35 +00:00