[U-Boot] [PATCH 1/4] tools/env: return with error if redundant environments have unequal size

Simon Glass sjg at chromium.org
Sat Jul 9 16:39:17 CEST 2016


On 27 June 2016 at 16:06, Andreas Fenkart
<andreas.fenkart at digitalstrom.com> wrote:
>
> From: Andreas Fenkart <afenkart at gmail.com>
>
> 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.
>
> Signed-off-by: Andreas Fenkart <andreas.fenkart at digitalstrom.com>
> ---
>  tools/env/fw_env.c | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list