]> git.dujemihanovic.xyz Git - u-boot.git/commit
loads: Block writes into LMB reserved areas of U-Boot
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 10 Oct 2021 21:52:41 +0000 (23:52 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 Oct 2021 18:29:37 +0000 (14:29 -0400)
commitc6855195e4b4dd07d1ae04d9d98ed999f65b7dc3
tree053e9de613a538fc7d706809f7c55f19f0da2220
parentf47f87f257b790bbc9b071de433324dab2305d7d
loads: Block writes into LMB reserved areas of U-Boot

The loads srec loading may overwrite piece of U-Boot accidentally.
Prevent that by using LMB to detect whether upcoming write would
overwrite piece of reserved U-Boot code, and if that is the case,
abort the srec loading.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/load.c