diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 09dad2df7aaeab55200c130ecfdf0ca228bf739c..1cf3a72f295493d689ff44a8d4363ccf7b65be9a 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -70,7 +70,7 @@ static int mei_cl_device_probe(struct device *dev) dev_dbg(dev, "Device probe\n"); - strncpy(id.name, dev_name(dev), sizeof(id.name)); + strlcpy(id.name, dev_name(dev), sizeof(id.name)); return driver->probe(device, &id); }