]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Fix broken verify functionality in crc32 command
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 5 May 2015 17:23:53 +0000 (12:23 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:43 +0000 (22:38 +0200)
commit3725d2c8e238bc83b2e99994007fcbc10bd6415c
tree4f351fdb8057dd6a58fcf1049054e508f76a7872
parent55c36da58c21f35d99ad88baa00e3ada6a59aa78
Fix broken verify functionality in crc32 command

Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75
"Roll crc32 into hash infrastructure"

The crc32 command with no -v expects an optional 3rd argument to be an
address to store the result in. With the -v switch, the last argument
is a crc, not an address. In the case where -v is set, we should set the
HASH_FLAG_ENV flag since that will first look for the value to be a
digest value, which matches the expected API for the crc32 command.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cmd_mem.c