From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9AE9C3D9DB8 for ; Mon, 20 Jul 2026 09:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784541417; cv=none; b=bemxX5/GqS95N6zmuoR6drGjfipbYehUwAgGFTlNo5SBPEf54OTOc0TLgmoTr05AoAul9bQ6srOeUFLQe9THNYlX3MENPmu0ZrAOejX4ohYAvbXZf4+5hAkxej4+2+5FQKH5psQ0zZSpudtuV+v6G09iw25eY/ASAGoCgSMvzbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784541417; c=relaxed/simple; bh=XUcoX9DzUJ8EXMsT4Dtv0p/Wf+WyTkH7seHh41GMCl0=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=fzq/9nqwiEgY3eyB9sVZm6YwELUZkBhKElXnuQR2QxakHl1HvE7Krs4w0kDVfFYAziNbyf/4Mc3zL/wR0X+Emc6iA1Jzsfk0SqQWSsnK/BKqnRb4B9omfKjkr6YhH9UCi4UrFMxNugIl+eH9z11zi0Nl8KIEwMO3lH8drENB6TA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C/TRWhVB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="C/TRWhVB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 010A01F00A3E; Mon, 20 Jul 2026 09:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784541412; bh=3z4xcEFWolHU+Jxteq+KCe0lg7ctWGyh0k7quaL1tQk=; h=Subject:To:Cc:From:Date; b=C/TRWhVBaE5i02O7pHwQWmQjnk30x3OIqnMOefC8EevUsELxVjhx6p6VY52nwrrk4 DQrIRaMSaYc5yeiJC9XwDyNK09VmC47ucWfnGMZVdB3I1SQAY0Mh1eqcccStvZlrJo 9MTyCx2QI3SV1UyAswK1ZBtDyswpM3AXLnKo+VyQ= Subject: FAILED: patch "[PATCH] fbcon: Use correct type for vc_resize() return value" failed to apply to 6.6-stable tree To: yujiacheng3@huawei.com,deller@gmx.de,tzimmermann@suse.de Cc: From: Date: Mon, 20 Jul 2026 11:56:35 +0200 Message-ID: <2026072035-panning-hurray-03f9@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 84202754fb1727dc3ee87f47104e4162ecc8ba3a # git commit -s git send-email --to '' --in-reply-to '2026072035-panning-hurray-03f9@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 84202754fb1727dc3ee87f47104e4162ecc8ba3a Mon Sep 17 00:00:00 2001 From: Jiacheng Yu Date: Thu, 14 May 2026 17:19:18 +0800 Subject: [PATCH] fbcon: Use correct type for vc_resize() return value The return value of vc_resize() is int, but fbcon_set_disp() stores it in an unsigned long variable. While the !ret check happens to work correctly by coincidence (negative values become large positive values), the types should match. Use int instead. Eliminates the following W=3 warning: drivers/video/fbdev/core/fbcon.c: In function 'fbcon_set_disp': drivers/video/fbdev/core/fbcon.c:1494:14: warning: implicit conversion from 'int' to 'unsigned long' [-Wconversion] Fixes: af0db3c1f898 ("fbdev: Fix vmalloc out-of-bounds write in fast_imageblit") Cc: stable@vger.kernel.org # v6.17+ Signed-off-by: Jiacheng Yu Reviewed-by: Thomas Zimmermann Signed-off-by: Helge Deller diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index b0e3e765360d..641687a734d5 100644 --- a/drivers/video/fbdev/core/fbcon.c +++ b/drivers/video/fbdev/core/fbcon.c @@ -1440,8 +1440,7 @@ static void fbcon_set_disp(struct fb_info *info, struct fb_var_screeninfo *var, struct vc_data **default_mode, *vc; struct vc_data *svc; struct fbcon_par *par = info->fbcon_par; - int rows, cols; - unsigned long ret = 0; + int rows, cols, ret; p = &fb_display[unit];