Skip to content

Commit

Permalink
Merge branch 'pci/controller/mt7621'
Browse files Browse the repository at this point in the history
- Enlarge PHY name buffer to avoid snprintf() overflow (Sergio Paracuellos)

* pci/controller/mt7621:
  PCI: mt7621: Fix string truncation in mt7621_pcie_parse_port()
  • Loading branch information
bjorn-helgaas committed May 16, 2024
2 parents 08f3890 + fd6eb49 commit 102c696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/controller/pcie-mt7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static int mt7621_pcie_parse_port(struct mt7621_pcie *pcie,
struct mt7621_pcie_port *port;
struct device *dev = pcie->dev;
struct platform_device *pdev = to_platform_device(dev);
char name[10];
char name[11];
int err;

port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL);
Expand Down

0 comments on commit 102c696

Please sign in to comment.