summaryrefslogtreecommitdiff
path: root/scripts/env2string.awk
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2026-02-21 11:00:07 +0100
committerTom Rini <[email protected]>2026-03-06 10:32:41 -0600
commitd80d88cb87d7f291c7abc9168d69f30f994b852f (patch)
tree5e65eef536dc5abf184364666b1df34179e921ce /scripts/env2string.awk
parent1197954d5896f431716a61b4242c98c336753948 (diff)
fw_env: allocate buffer of proper size in flash_write_buf()
When dealing with env data not aligned to flash blocks flash_write_buf() has to use an extra buffer. It reads existing flash content to it, modifies required part and writes it back. While reading and writing a size stored in "write_total" is used. It's what should be used when allocating the buffer too. In some cases allocating memory of "erase_len" size could result in allocating too big buffer. That wouldn't break anything but it was making code less intuitive. Signed-off-by: Rafał Miłecki <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions