fbdev: atmel_lcdfb: Use strscpy() to copy device name

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
David Laight
2026-06-06 21:26:16 +01:00
committed by Helge Deller
parent 98c2b2551b
commit 6f43abc6f8

View File

@@ -1060,7 +1060,7 @@ static int atmel_lcdfb_probe(struct platform_device *pdev)
info->fbops = &atmel_lcdfb_ops;
info->fix = atmel_lcdfb_fix;
strcpy(info->fix.id, sinfo->pdev->name);
strscpy(info->fix.id, sinfo->pdev->name);
/* Enable LCDC Clocks */
sinfo->bus_clk = clk_get(dev, "hclk");