commit | d8f0f1aea03523a5093073875fcfdac59ce2a162 | [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 | 379ec09d991c68bd82e13d0d262330ac738f6c73 [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>