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

Simon Glass sjg at chromium.org
Fri Aug 4 05:02:27 CEST 2023


On Thu, 3 Aug 2023 at 03:32, 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(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list