summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-03-09 11:27:07 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 09:30:33 +0200
commit0dd5b335ed69d63bbda7234d6fca0e1c376129cf (patch)
tree7415c07117608e08bdf8a36f66dc593d76f39258 /sound
parent8f9155989f12aae24bedfcec33f9226beb466574 (diff)
PCI: iproc: Save host bridge window resource in struct iproc_pcie
commit 6e347b5e05ea2ac4ac467a5a1cfaebb2c7f06f80 upstream. The host bridge memory window resource is inserted into the iomem_resource tree and cannot be deallocated until the host bridge itself is removed. Previously, the window was on the stack, which meant the iomem_resource entry pointed into the stack and was corrupted as soon as the probe function returned, which caused memory corruption and errors like this: pcie_iproc_bcma bcma0:8: resource collision: [mem 0x40000000-0x47ffffff] conflicts with PCIe MEM space [mem 0x40000000-0x47ffffff] Move the memory window resource from the stack into struct iproc_pcie so its lifetime matches that of the host bridge. Fixes: c3245a566400 ("PCI: iproc: Request host bridge window resources") Reported-and-tested-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions