]> git.baikalelectronics.ru Git - uboot.git/commit
imx: hab: Allow hab_auth_img_or_fail to be called without ivt_offset
authorEduard Strehlau <eduard@lionizers.com>
Thu, 7 Sep 2023 01:47:25 +0000 (22:47 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Sep 2023 16:45:33 +0000 (18:45 +0200)
commitaf3bc2f2fd6d157e1c6877d39f74c0e914484c23
tree7fa48689ebc79046b0fb6d6d2c779facf33dc961
parentc87667d3806e73b1998fe8fba0adec7d57920c8d
imx: hab: Allow hab_auth_img_or_fail to be called without ivt_offset

Since commit 71adf778f1e2 ("imx: hab: extend hab_auth_img to calculate
ivt_offset"), it is possible to call the hab_auth_img command without the
last ivt_offset argument.

Currently, calling hab_auth_img_or_fail without the last
ivt_offset parameter causes a failure and the command usage text is shown.

Fix this problem by adjusting the argc logic to allow
calling hab_auth_img_or_fail with only the address and size parameters.

This way, both hab_auth_img and hab_auth_img_or_fail have the same
behavior with respect to the allowed number of command parameters.

Signed-off-by: Eduard Strehlau <eduard@lionizers.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
arch/arm/mach-imx/hab.c