]> git.dujemihanovic.xyz Git - u-boot.git/commit
lcd: avoid possible NULL dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 30 Jul 2017 19:59:23 +0000 (21:59 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 19 Aug 2017 18:42:20 +0000 (20:42 +0200)
commit021414a33248f9c1f6eb4a676f4a1fbcfa26f475
tree8b6fb31e582583158da079aa164a9472de57b7a6
parent5619295995e3262bb5770e8b5e945ffdc5442145
lcd: avoid possible NULL dereference

Do not dereference bmp before the check if it is NULL.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
common/lcd.c