|
@@ -1492,8 +1492,8 @@ static int add_port(struct ports_device *portdev, u32 id)
|
|
|
* Finally, create the debugfs file that we can use to
|
|
|
* inspect a port's state at any time
|
|
|
*/
|
|
|
- sprintf(debugfs_name, "vport%up%u",
|
|
|
- port->portdev->vdev->index, id);
|
|
|
+ snprintf(debugfs_name, sizeof(debugfs_name), "vport%up%u",
|
|
|
+ port->portdev->vdev->index, id);
|
|
|
port->debugfs_file = debugfs_create_file(debugfs_name, 0444,
|
|
|
pdrvdata.debugfs_dir,
|
|
|
port,
|