commit | f0317d788221828089fe54433cf5c502d748ef77 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Tue Aug 17 07:11:58 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Wed Sep 01 08:09:24 2021 +0200 |
tree | eac96cac9cd154b1dc2e284c445ebe3d2cd94c75 | |
parent | f858bb2e6c191da3981838937950cb3c98e488fe [diff] |
kwbimage: check return value of image_get_csk_index image_get_csk_index() may return -1 in case of an error. Don't use this value as index. This resolves Coverity CID 338488 Memory - illegal accesses (NEGATIVE_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>