summaryrefslogtreecommitdiffstats
path: root/fmap.c
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2018-12-05 13:26:20 +0100
committerNico Huber <nico.h@gmx.de>2018-12-06 15:47:35 +0000
commitbbaa1719b13908ae570c93eba74e5b5f990e8271 (patch)
treec562597f1417c201eac0a7f8edb1ad71ca515635 /fmap.c
parent7fb508dc137818587bf142ec1f28fbc1c3a371fc (diff)
downloadflashrom-bbaa1719b13908ae570c93eba74e5b5f990e8271.tar.gz
flashrom-bbaa1719b13908ae570c93eba74e5b5f990e8271.tar.bz2
flashrom-bbaa1719b13908ae570c93eba74e5b5f990e8271.zip
dediprog: Fix small, unaligned reads
This never was a use case until now but the `--fmap` code makes it obvious: Unaligned reads that were smaller than the `chunksize` here, were extended without considering the length of the buffer read into. With that fixed we run into the next problem: dediprog_spi_bulk_read() shouldn't report an error when an empty read is unaligned. Change-Id: Ie12b62499ebfdb467d5126c00d327c76077ddead Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/30051 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'fmap.c')
0 files changed, 0 insertions, 0 deletions