From: Jiang Liu Date: Thu, 6 Jun 2013 17:10:08 +0000 (+0800) Subject: PCI: Fix refcount issue in pci_create_root_bus() error recovery path X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~18^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=343df771e671d821478dd3ef525a0610b808dbf8;p=pandora-kernel.git PCI: Fix refcount issue in pci_create_root_bus() error recovery path After calling device_register(&bridge->dev), the bridge is reference- counted, and it is illegal to call kfree() on it except in the release function. [bhelgaas: changelog, use put_device() after device_register() failure] Signed-off-by: Jiang Liu Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org --- Reading git-diff-tree failed