]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Fix checking image header version
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:22 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
commit5029d7bf34ec14730faa74d0fa1a229ec21233c9
tree3e696c45562c44bdcefc61991ab7113e5c386965
parent825a2ca023202f73a09660db7a49ac1109917ce8
tools: kwboot: Fix checking image header version

Function image_version() returns unsigned value, so it can never be
negative. Explicitly check for two supported image versions: v0 and v1.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c