mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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>
This commit is contained in:
parent
3ad7bf5e57
commit
53fff954e7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue