Skip to content

Commit

Permalink
Merge branch 'pci/controller/rcar-ep'
Browse files Browse the repository at this point in the history
- Avoid passing stack buffer as resource name (King Dix)

* pci/controller/rcar-ep:
  PCI: rcar-ep: Fix incorrect variable used when calling devm_request_mem_region()
  • Loading branch information
Bjorn Helgaas committed Jan 23, 2025
2 parents 1854b2e + 2d2da5a commit a306f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/pcie-rcar-ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static int rcar_pcie_parse_outbound_ranges(struct rcar_pcie_endpoint *ep,
}
if (!devm_request_mem_region(&pdev->dev, res->start,
resource_size(res),
outbound_name)) {
res->name)) {
dev_err(pcie->dev, "Cannot request memory region %s.\n",
outbound_name);
return -EIO;
Expand Down

0 comments on commit a306f01

Please sign in to comment.