summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-02-22 13:47:25 -0600
committerBjorn Helgaas <bhelgaas@google.com>2023-02-22 13:47:25 -0600
commit72d083a60a864ad75059b63dc4a2f7107eb85d0a (patch)
tree53031be6c045f17728f78371fdd762cbce73cee9 /drivers/pci
parentfec93576f7dc80756c6f142a3312ddc4dac5db9a (diff)
parentea0b5aa5f184cf8293c93163f0fb00505190d431 (diff)
Merge branch 'pci/iov'
- Enlarge virtfn sysfs name buffer to prevent buffer overflow (Alexey V. Vissarionov) * pci/iov: PCI/IOV: Enlarge virtfn sysfs name buffer
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/iov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 952217572113..b2e8322755c1 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -14,7 +14,7 @@
#include <linux/delay.h>
#include "pci.h"
-#define VIRTFN_ID_LEN 16
+#define VIRTFN_ID_LEN 17 /* "virtfn%u\0" for 2^32 - 1 */
int pci_iov_virtfn_bus(struct pci_dev *dev, int vf_id)
{