diff options
author | Winter Wang <wente.wang@nxp.com> | 2016-07-28 20:19:00 +0800 |
---|---|---|
committer | Wang Haoran <Haoran.Wang@freescale.com> | 2016-07-29 17:04:25 +0800 |
commit | 8c3ca30445906c5e99e3fd99c5b679f1d4653d53 (patch) | |
tree | 0477fdc03c7df219ed3cba11fedb8b52d819c7fb /arch/arm/cpu | |
parent | df1930552e1846d63c9c5a6620a16e711aabf970 (diff) | |
download | u-boot-imx-8c3ca30445906c5e99e3fd99c5b679f1d4653d53.zip u-boot-imx-8c3ca30445906c5e99e3fd99c5b679f1d4653d53.tar.gz u-boot-imx-8c3ca30445906c5e99e3fd99c5b679f1d4653d53.tar.bz2 |
MA-8418 fix return value check for get_device_and_partition
if the lock/unlock partitions are not created, reboot will fail
with "boota: bad boot image magic".
get_device_and_partition will return negtive value if error,
fix this return value check if there is no lock/unlock related
partitions, or block_write in fastboot_set_lock_stat may destroy
boot partition.
refine code indentation.
Signed-off-by: Winter Wang <wente.wang@nxp.com>
Diffstat (limited to 'arch/arm/cpu')
0 files changed, 0 insertions, 0 deletions