diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-17 02:14:13 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-17 02:14:13 +0300 |
commit | 102c69699b5b5d4aebfe8d15d5f91bde68dababd (patch) | |
tree | b995a0cd63d473c6144640c35c5fc4d068dc3f9b | |
parent | 08f38906c9478b43d5972c1b34eee4f3f4cc2e7c (diff) | |
parent | fd6eb49a84a85150d5e9ffbd85d3b102303f9470 (diff) | |
download | linux-102c69699b5b5d4aebfe8d15d5f91bde68dababd.tar.xz |
Merge branch 'pci/controller/mt7621'
- Enlarge PHY name buffer to avoid snprintf() overflow (Sergio Paracuellos)
* pci/controller/mt7621:
PCI: mt7621: Fix string truncation in mt7621_pcie_parse_port()
-rw-r--r-- | drivers/pci/controller/pcie-mt7621.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c index 79e225edb42a..d97b956e6e57 100644 --- a/drivers/pci/controller/pcie-mt7621.c +++ b/drivers/pci/controller/pcie-mt7621.c @@ -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); |