]> git.sur5r.net Git - u-boot/commit
atcspi200: avoid possible NULL dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 31 Jan 2018 00:05:54 +0000 (01:05 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Feb 2018 03:06:18 +0000 (22:06 -0500)
commit923837e159c5886be38c7a83a2d6bc489b35c1f4
tree60b8e0917f38e3036453fda717d8bb4e4d048e4c
parent8639e34d2c5e12cc2e45c95b1a2e97c22bf6a711
atcspi200: avoid possible NULL dereference

Check if ns before and not after dereferencing it.

Indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/spi/atcspi200_spi.c