diff options
author | Nikolai Artemiev <nartemiev@google.com> | 2022-12-09 15:31:01 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-12-23 21:40:25 +0000 |
commit | 9a152b8191c5bd3b0a88b29c6b267030da77b770 (patch) | |
tree | fb120989648ee922eb00a6d048c448bd45aec316 /tests/chip_wp.c | |
parent | dc7485b3613c2f2752291b9b60458a27a9ac81da (diff) | |
download | flashrom-9a152b8191c5bd3b0a88b29c6b267030da77b770.tar.gz flashrom-9a152b8191c5bd3b0a88b29c6b267030da77b770.tar.bz2 flashrom-9a152b8191c5bd3b0a88b29c6b267030da77b770.zip |
flashrom: Check for flash access restrictions in erase path
Skip unwritable regions if FLASHROM_FLAG_SKIP_UNWRITABLE_REGIONS is
true. If the flag is false, erase operations that include an unwritable
region will not erase anything and return an error.
BUG=b:260440773
BRANCH=none
TEST=flashrom -E on dedede (JSL)
Change-Id: If027a96a024782c7707c6d38680709a1a117f3ef
CoAuthored-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/70517
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'tests/chip_wp.c')
0 files changed, 0 insertions, 0 deletions