Re: [PATCH virtio 1/3] pds_vdpa: fix up format-truncation complaint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 11, 2023 at 6:18 AM Shannon Nelson <shannon.nelson@xxxxxxx> wrote:
>
> 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@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202311040109.RfgJoE7L-lkp@xxxxxxxxx/
> Signed-off-by: Shannon Nelson <shannon.nelson@xxxxxxx>

Acked-by: Jason Wang <jasowang@xxxxxxxxxx>

I think this is needed for -stable?

Thanks

> ---
>  drivers/vdpa/pds/debugfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
> --
> 2.17.1
>






[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux