diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-06-07 01:10:08 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-06-07 14:42:03 -0600 |
commit | 343df771e671d821478dd3ef525a0610b808dbf8 (patch) | |
tree | 71fb953db03eaf6134345c6f277af58b8819b9d0 /drivers/usb/gadget/f_eem.c | |
parent | a649dbfea36bdcead7ffddc622c272844b95a13e (diff) | |
download | blackbird-op-linux-343df771e671d821478dd3ef525a0610b808dbf8.tar.gz blackbird-op-linux-343df771e671d821478dd3ef525a0610b808dbf8.zip |
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 <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/usb/gadget/f_eem.c')
0 files changed, 0 insertions, 0 deletions