flashrom.c: Don't check for erase outside of selected region
Originally, select_erase_functions() was intended to be called only
with regions that are erase-block aligned. To prepare for unaligned
regions, we limit the range passed to need_erase() to what should be
written.
Change-Id: Iae38ecbf79bf6fccc0ff6f874056e0c071636f89
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72559
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed