From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42F3917E90E; Mon, 27 May 2024 19:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837058; cv=none; b=WeMG++ganBogJTSPomy3FqnlQHRrLmceG/HqzwHN6Ih5eyyrTmHVjdLNDU2iG/WCt99kJSk3F3EC2PdMxUjHh7BHZ8OQ3itNJ9tNGqnrESaumaGaQs9ky/koXEK89cyRW21njyS3QAMPMQOwOH63tBc35NbtSHA4czqfM6HUbjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837058; c=relaxed/simple; bh=SamgFYJa2JN4xvR9XIiXGIplJt0oKDZsxMiUjbz7GbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o6cDnWhCv47tAYM2S2mqpeFcMNivVHKxaYI/1UMOi6pjRMdV6CiC5pJs6+r97wCyCGXIJIUGxAv1adAfWXlSJpwJE5gYq+UpoVMnNyUOZtz4Md43YhS/7Y3GgdxPX0llhMBiQB2LUE0CYp0pXO0QdbQ+UHy4I5yGZjvzLNR3Llw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O++OBAt2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O++OBAt2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE8D0C2BBFC; Mon, 27 May 2024 19:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716837058; bh=SamgFYJa2JN4xvR9XIiXGIplJt0oKDZsxMiUjbz7GbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O++OBAt2mmz1x06utCZnih7eviHXLs5r+KV7Z8wOvIZV5IVm4S0cdMdVCTG3+WhQq 0SH+sm+ys3sEP/7YyK29vgcbzyXNMq/XF2DaU+iUBWoopbHmDAfPfwNWHD5x98GWeC pxlYwVGKDaE0B+m1IwW3Z59c3PEqbQiknIre3xx8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Arnd Bergmann , Laurent Pinchart , Helge Deller , Sasha Levin Subject: [PATCH 6.9 294/427] fbdev: shmobile: fix snprintf truncation Date: Mon, 27 May 2024 20:55:41 +0200 Message-ID: <20240527185629.784642237@linuxfoundation.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527185601.713589927@linuxfoundation.org> References: <20240527185601.713589927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ 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 Reviewed-by: Laurent Pinchart Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c index eb2297b37504c..d35d2cf999988 100644 --- a/drivers/video/fbdev/sh_mobile_lcdcfb.c +++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c @@ -1575,7 +1575,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl) */ info->fix = sh_mobile_lcdc_overlay_fix; snprintf(info->fix.id, sizeof(info->fix.id), - "SH Mobile LCDC Overlay %u", ovl->index); + "SHMobile ovl %u", ovl->index); info->fix.smem_start = ovl->dma_handle; info->fix.smem_len = ovl->fb_size; info->fix.line_length = ovl->pitch; -- 2.43.0