Skip to content

Commit 102c696

Browse files
committed
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()
2 parents 08f3890 + fd6eb49 commit 102c696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pcie-mt7621.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int mt7621_pcie_parse_port(struct mt7621_pcie *pcie,
202202
struct mt7621_pcie_port *port;
203203
struct device *dev = pcie->dev;
204204
struct platform_device *pdev = to_platform_device(dev);
205-
char name[10];
205+
char name[11];
206206
int err;
207207

208208
port = devm_kzalloc(dev, sizeof(*port), GFP_KERNEL);

0 commit comments

Comments
 (0)