diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-08-12 10:00:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 11:48:13 +0200 |
commit | 1a091bfd11e61032b6192cf2a1ebb259889f28b3 (patch) | |
tree | f537f8819cb9e0789f872b61d08517c1eaff56e1 /CREDITS | |
parent | 91264ae7fceb7e30172ab7dd27e3e41751cb83b3 (diff) | |
download | linux-stable-1a091bfd11e61032b6192cf2a1ebb259889f28b3.tar.gz linux-stable-1a091bfd11e61032b6192cf2a1ebb259889f28b3.tar.bz2 linux-stable-1a091bfd11e61032b6192cf2a1ebb259889f28b3.zip |
PCI: Fix pci_dev_str_match_path() alloc while atomic bug
[ Upstream commit 7eb6ea4148579b85540a41d57bcec315b8af8ff8 ]
pci_dev_str_match_path() is often called with a spinlock held so the
allocation has to be atomic. The call tree is:
pci_specified_resource_alignment() <-- takes spin_lock();
pci_dev_str_match()
pci_dev_str_match_path()
Fixes: 45db33709ccc ("PCI: Allow specifying devices using a base bus and path of devfns")
Link: https://lore.kernel.org/r/20210812070004.GC31863@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions