From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sat, 19 Aug 2017 20:51:24 +0200 Subject: [U-Boot] [PATCH 1/1] lcd: avoid possible NULL dereference In-Reply-To: <20170730195923.22264-1-xypron.glpk@gmx.de> References: <20170730195923.22264-1-xypron.glpk@gmx.de> Message-ID: <20170819205124.1d6013d8@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Sun, 30 Jul 2017 21:59:23 +0200 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 > --- > common/lcd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied to u-boot-video/master, thanks! -- Anatolij