Skip to content

imagemap: fixes from the v1 review

Daniel Golle u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mtd: bind the block device without leaking on failuredrivers/mtd/mtdcore.c+26 -111 reply
2/11cmd: ubi: report a failed UBI block device bindcmd/ubi.c+7 -11 reply
3/11cmd: ubi: unbind the block device when detaching UBIcmd/ubi.c drivers/mtd/ubi/block.c include/ubi_uboot.h+49 -321 reply
4/11boot: imagemap: free the reservation a replaced record ownedboot/imagemap.c+16 -61 reply
5/11boot: imagemap: do not resize a region the caller ownsboot/imagemap.c+10 -51 reply
6/11boot: imagemap: read only the bytes an extend addsboot/imagemap.c+14 -41 reply
7/11boot: fit: unmap the load address after a storage readboot/image-fit.c+3 -11 reply
8/11boot: fit: keep the load message for RAM-backed imagesboot/image-fit.c+2 -11 reply
9/11boot: bootm: release the imagemap on every failing exitboot/bootm.c+4 -51 reply
10/11test: boot: imagemap: detach UBI when the test is donetest/boot/imagemap.c+8 -01 reply
11/11test: boot: imagemap: reset driver-model state between teststest/boot/imagemap.c+15 -131 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] imagemap: fixes from the v1 review

Simon Glass reviewed the v1 posting of the imagemap series ([email protected]) after v2 had already been applied, so his comments arrive against code that is now in next. This series carries the correctness half of them; a second series follows with the structural and cosmetic half.

Tested on sandbox: every commit builds, "ut imagemap" passes 13/13 and survives "ut -r3", and a full test.py run shows the same 11 failures and 20 errors as unmodified next, all of them EFI-secboot tooling, ext4 and config-rebuild tests unrelated to this code. Also built with CONFIG_IMAGEMAP=n.

Daniel Golle (11):
mtd: bind the block device without leaking on failure
cmd: ubi: report a failed UBI block device bind
cmd: ubi: unbind the block device when detaching UBI
boot: imagemap: free the reservation a replaced record owned
boot: imagemap: do not resize a region the caller owns
boot: imagemap: read only the bytes an extend adds
boot: fit: unmap the load address after a storage read
boot: fit: keep the load message for RAM-backed images
boot: bootm: release the imagemap on every failing exit
test: boot: imagemap: detach UBI when the test is done
test: boot: imagemap: reset driver-model state between tests

 boot/bootm.c            |  9 +++---
 boot/image-fit.c        |  7 +++--
 boot/imagemap.c         | 55 ++++++++++++++++++++++++---------
 cmd/ubi.c               | 67 +++++++++++++++++++++++++++--------------
 drivers/mtd/mtdcore.c   | 37 ++++++++++++++++-------
 drivers/mtd/ubi/block.c |  4 ++-
 include/ubi_uboot.h     |  4 +--
 test/boot/imagemap.c    | 36 ++++++++++++++--------
 8 files changed, 147 insertions(+), 72 deletions(-)

base-commit: 2b8902913c19eb581fb0d567201c09b8fa46ac74

Signature · 1 line
2.55.0