diff options
author | 2012-04-02 18:31:53 -0700 | |
---|---|---|
committer | 2012-04-30 13:52:17 -0600 | |
commit | baa495d9de2af97310128bfc0e365a813b63d5bb (patch) | |
tree | 357ac52e1d76a3a71345e549ef207916f1e53326 /drivers/i2c/algos/i2c-algo-bit.c | |
parent | PCI: move host bridge-related code to host-bridge.c (diff) | |
download | wireguard-linux-baa495d9de2af97310128bfc0e365a813b63d5bb.tar.xz wireguard-linux-baa495d9de2af97310128bfc0e365a813b63d5bb.zip |
x86/PCI: fix memleak with get_current_resources()
In pci_scan_acpi_root(), when pci_use_crs is set, get_current_resources()
is used to get pci_root_info, and it will allocate name and resource array.
Later if pci_create_root_bus() can not create bus (could be already
there...) it will only free bus res list, but the name and res array is not
freed.
Let get_current_resource() take info pointer instead of using local info.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions