Skip to content
Commit 01c76f1a authored by Bin Meng's avatar Bin Meng Committed by Anatolij Gustschin
Browse files

video: vidconsole: Fix null dereference of ops->measure



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: b828ed7d ("console: Allow measuring the bounding box of text")
Signed-off-by: default avatarBin Meng <bmeng@tinylab.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent a5899cc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment