We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8526ad9 commit 6fb8852Copy full SHA for 6fb8852
drivers/net/netdevsim/dev.c
@@ -73,7 +73,7 @@ static const struct file_operations nsim_dev_take_snapshot_fops = {
73
74
static int nsim_dev_debugfs_init(struct nsim_dev *nsim_dev)
75
{
76
- char dev_ddir_name[16];
+ char dev_ddir_name[sizeof(DRV_NAME) + 10];
77
78
sprintf(dev_ddir_name, DRV_NAME "%u", nsim_dev->nsim_bus_dev->dev.id);
79
nsim_dev->ddir = debugfs_create_dir(dev_ddir_name, nsim_dev_ddir);
0 commit comments