]> git.sur5r.net Git - u-boot/commit
tools/env: return with error if redundant environments have unequal size
authorAndreas Fenkart <andreas.fenkart@digitalstrom.com>
Wed, 17 Aug 2016 21:41:53 +0000 (23:41 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 20 Aug 2016 18:03:26 +0000 (14:03 -0400)
commit490365c38f869ecebda701df2c060ba3a9e628d3
treefe39074274fee8059539cb079dbdd0bc08a27ba5
parentc359ae5e8b461113c51ebbf3e587c4c362bff2e2
tools/env: return with error if redundant environments have unequal size

For double buffering to work, the target buffer must always be big
enough to hold all data. This can only be ensured if buffers are of
equal size, otherwise one must be smaller and we risk data loss
when copying from the bigger to the smaller buffer.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/env/fw_env.c