[PATCH] video: vidconsole: Fix null dereference of ops->measure

Anatolij Gustschin agust at denx.de
Mon Aug 14 08:05:08 CEST 2023


On Thu,  3 Aug 2023 17:32:41 +0800
Bin Meng bmeng at tinylab.org wrote:

> At present vidconsole_measure() tests ops->select_font before calling
> ops->measure, which would result in a null dereference when the console
> driver provides no ops for measure.
> 
> Fixes: b828ed7d7929 ("console: Allow measuring the bounding box of text")
> Signed-off-by: Bin Meng <bmeng at tinylab.org>
> ---
> 
>  drivers/video/vidconsole-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-video/master, thanks!

--
Anatolij


More information about the U-Boot mailing list