Skip to content
Commit f0317d78 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Stefan Roese
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarPali Rohár <pali@kernel.org>
parent f858bb2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment