summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2019-04-10 15:05:31 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-25 18:22:26 +0200
commit48be4d7ced2cd62430c01c9bd62afa734540caeb (patch)
treef3503c3a0064b7b073495ba0d03a9db3e40b5d94 /scripts/gdb/linux/modules.py
parentfa42fde1f8e6da596de8e0bb1e353bc8ce000bc2 (diff)
PCI: Fix issue with "pci=disable_acs_redir" parameter being ignored
[ Upstream commit d5bc73f34cc97c4b4b9202cc93182c2515076edf ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions