PCI: acpiphp: fix function 0 leak when disabling a slot
authorAmos Kong <kongjianjun@gmail.com>
Wed, 23 May 2012 03:58:40 +0000 (21:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Jun 2012 22:38:06 +0000 (16:38 -0600)
commit638f293307b5787b69bf0a0bc915aed491efbec9
tree9f55e09ea02362cfb336c39bd64b5fab9cb2f7f1
parent06aef8cec7563c40c7d7501d13ec1ed12f5e495b
PCI: acpiphp: fix function 0 leak when disabling a slot

Previously, we acquired two references to function 0, but only released
one.

[bhelgaas: split this out from "remove all functions" fix]
Signed-off-by: Amos Kong <kongjianjun@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp_glue.c