diff options
author | Nico Huber <nico.huber@secunet.com> | 2019-01-23 17:07:49 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-03-04 15:04:00 +0000 |
commit | a3db7ed513f2ec3c9d34a22d7c5c829d3d410dc2 (patch) | |
tree | 8f655b24952d70b724173ee45a2eb8ac2fd42342 /flashchips.c | |
parent | 69f96f60295d82ac9525fbd20aa94a3d86c2904c (diff) | |
download | flashrom-1.0.1.tar.gz flashrom-1.0.1.tar.bz2 flashrom-1.0.1.zip |
Fix erasing of unaligned regionsv1.0.1-rc2v1.0.1
The erase (-E) feature is somehow a brute force method, but still, if we
are given a region to erase, we should make sure to restore surrounding
data if the erase block expands beyond the region.
Slight alteration from `master` commit: Guard free() from NULL pointers
to be regression safe even in case of broken libc.
Change-Id: I5fc35310f0b090f218cd1d660e27fb39dd05c3c5
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/31069
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flashchips.c')
0 files changed, 0 insertions, 0 deletions