summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2019-04-10 15:05:31 -0600
committerBjorn Helgaas <bhelgaas@google.com>2019-04-12 15:32:08 -0500
commitd5bc73f34cc97c4b4b9202cc93182c2515076edf (patch)
tree91a010b549580aeed358fb85267ad558ec82721c /drivers/pci/pcie
parent3943af9d01e94330d0cfac6fccdbc829aad50c92 (diff)
PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored
In most cases, kmalloc() will not be available early in boot when pci_setup() is called. Thus, the kstrdup() call that was added to fix the __initdata bug with the disable_acs_redir parameter usually returns NULL, so the parameter is discarded and has no effect. To fix this, store the string that's in initdata until an initcall function can allocate the memory appropriately. This way we don't need any additional static memory. Fixes: d2fd6e81912a ("PCI: Fix __initdata issue with "pci=disable_acs_redir" parameter") Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
0 files changed, 0 insertions, 0 deletions