]> git.dujemihanovic.xyz Git - u-boot.git/commit
kwbimage: check fopen() return value
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 17 Aug 2021 05:03:20 +0000 (07:03 +0200)
committerStefan Roese <sr@denx.de>
Wed, 1 Sep 2021 06:09:24 +0000 (08:09 +0200)
commitf858bb2e6c191da3981838937950cb3c98e488fe
tree5af2b8e0af165d7d13b361d8bb2535b5050915db
parente23162c805d46e7f6d11ba07f397b5e3e3750fda
kwbimage: check fopen() return value

Always check the return value of fopen().

This resolves Coverity CID 338491:
Null pointer dereferences (NULL_RETURNS)

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c