aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-designware-host.c
diff options
context:
space:
mode:
authorNiklas Cassel <[email protected]>2025-01-04 00:21:20 +0000
committerBjorn Helgaas <[email protected]>2025-01-18 17:34:48 +0000
commit574913f9e197c050178f36b6e6fdd92031baa078 (patch)
tree58d60f1a32e0804759e7df10a9f97729a729bf39 /drivers/pci/controller/dwc/pcie-designware-host.c
parentLinux 6.13-rc1 (diff)
downloadkernel-574913f9e197c050178f36b6e6fdd92031baa078.tar.gz
kernel-574913f9e197c050178f36b6e6fdd92031baa078.zip
PCI: dwc: Fix potential truncation in dw_pcie_edma_irq_verify()
Increase the size of the string buffer to avoid potential truncation in dw_pcie_edma_irq_verify(). This fixes the following build warning when compiling with W=1: drivers/pci/controller/dwc/pcie-designware.c: In function ‘dw_pcie_edma_detect’: drivers/pci/controller/dwc/pcie-designware.c:989:50: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 3 [-Wformat-truncation=] 989 | snprintf(name, sizeof(name), "dma%d", pci->edma.nr_irqs); | ^~ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-designware-host.c')
0 files changed, 0 insertions, 0 deletions