Skip to content

Commit 8a1c7ef

Browse files
committed
Merge branch 'pci/controller/mediatek'
- Increase snprintf() buffer size to avoid truncation warnings (Ryder Lee) * pci/controller/mediatek: PCI: mediatek: Fix possible truncation in mtk_pcie_parse_port()
2 parents b43cdb3 + ab4a404 commit 8a1c7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/pcie-mediatek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ static int mtk_pcie_parse_port(struct mtk_pcie *pcie,
953953
struct mtk_pcie_port *port;
954954
struct device *dev = pcie->dev;
955955
struct platform_device *pdev = to_platform_device(dev);
956-
char name[10];
956+
char name[20];
957957
int err;
958958

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

0 commit comments

Comments
 (0)