Thread (3 messages) 3 messages, 3 authors, 2026-05-19

Re: [PATCH] fbcon: Use correct type for vc_resize() return value

flat view

From: Helge Deller <deller@gmx.de>
Date: 2026-05-19 07:18:22
Also in: dri-devel, lkml

On 5/15/26 09:12, Thomas Zimmermann wrote:

Am 14.05.26 um 11:19 schrieb Jiacheng Yu:
quoted
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")
Signed-off-by: Jiacheng Yu <redacted>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
applied to fbdev git tree.

Thanks!
Helge
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help