summaryrefslogtreecommitdiff
path: root/drivers/vdpa
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@amd.com>2023-11-10 14:18:00 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-20 11:51:41 +0100
commit53fff954e77c9bd0c186e46f396807da630c4765 (patch)
tree2e240b88258feba06655e9b9647d01e5afead884 /drivers/vdpa
parent3ad7bf5e57c98511a2e6e18918d020c3f396dc0b (diff)
downloadlinux-rpi-53fff954e77c9bd0c186e46f396807da630c4765.tar.gz
linux-rpi-53fff954e77c9bd0c186e46f396807da630c4765.tar.bz2
linux-rpi-53fff954e77c9bd0c186e46f396807da630c4765.zip
pds_vdpa: fix up format-truncation complaint
[ Upstream commit 4f317d6529d7fc3ab7769ef89645d43fc7eec61b ] Our friendly kernel test robot has recently been pointing out some format-truncation issues. Here's a fix for one of them. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311040109.RfgJoE7L-lkp@intel.com/ Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Message-Id: <20231110221802.46841-2-shannon.nelson@amd.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/vdpa')
-rw-r--r--drivers/vdpa/pds/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vdpa/pds/debugfs.c b/drivers/vdpa/pds/debugfs.c
index 9b04aad6ec35..c328e694f6e7 100644
--- a/drivers/vdpa/pds/debugfs.c
+++ b/drivers/vdpa/pds/debugfs.c
@@ -261,7 +261,7 @@ void pds_vdpa_debugfs_add_vdpadev(struct pds_vdpa_aux *vdpa_aux)
debugfs_create_file("config", 0400, vdpa_aux->dentry, vdpa_aux->pdsv, &config_fops);
for (i = 0; i < vdpa_aux->pdsv->num_vqs; i++) {
- char name[8];
+ char name[16];
snprintf(name, sizeof(name), "vq%02d", i);
debugfs_create_file(name, 0400, vdpa_aux->dentry,