These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / char / virtio_console.c
index 50754d2..d2406fe 100644 (file)
@@ -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,