diff options
author | Shannon Nelson <[email protected]> | 2023-11-10 14:18:00 -0800 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-12-01 09:55:01 -0500 |
commit | 4f317d6529d7fc3ab7769ef89645d43fc7eec61b (patch) | |
tree | ed87bd03848fb6b605ef075642912d6798980419 | |
parent | 480b3e73720f6b5d76bef2387b1f9d19ed67573b (diff) |
pds_vdpa: fix up format-truncation complaint
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Shannon Nelson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
-rw-r--r-- | drivers/vdpa/pds/debugfs.c | 2 |
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, |