]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: shmobile: fix snprintf truncation
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Mar 2024 22:38:00 +0000 (23:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:27 +0000 (13:39 +0200)
commit22509899d56d40303b6b38de70ff30dd84c6671a
tree697b09fb03e60074b6d1cef97b40db0fc1d3f5cc
parent99bc9199de86ab96a23509351b02c8641fe14233
fbdev: shmobile: fix snprintf truncation

[ Upstream commit 26c8cfb9d1e4b252336d23dd5127a8cbed414a32 ]

The name of the overlay does not fit into the fixed-length field:

drivers/video/fbdev/sh_mobile_lcdcfb.c:1577:2: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 25

Make it short enough by changing the string.

Fixes: c5deac3c9b22 ("fbdev: sh_mobile_lcdc: Implement overlays support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/sh_mobile_lcdcfb.c