[U-Boot] [PATCH 1/1] lcd: avoid possible NULL dereference

Simon Glass sjg at chromium.org
Tue Aug 1 09:49:28 UTC 2017


On 30 July 2017 at 13:59, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> Do not dereference bmp before the check if it is NULL.
>
> The problem was indicated by cppcheck.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  common/lcd.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

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


More information about the U-Boot mailing list