aboutsummaryrefslogtreecommitdiffstats
path: root/rayer_spi.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-05-25 12:56:18 +0200
committerEdward O'Callaghan <quasisec@chromium.org>2021-05-28 12:50:01 +0000
commit2ef2efa0fa6a920fe3dd8f067a6632798b214bcd (patch)
tree075e7e6e0eca3f57e72e28fb60f698dcf453963a /rayer_spi.c
parent6b1f3b084147a09a90ecb3efea88e3c80113e0ca (diff)
downloadflashrom-2ef2efa0fa6a920fe3dd8f067a6632798b214bcd.tar.gz
flashrom-2ef2efa0fa6a920fe3dd8f067a6632798b214bcd.tar.bz2
flashrom-2ef2efa0fa6a920fe3dd8f067a6632798b214bcd.zip
dummyflasher.c: Move `flashchip_contents` allocation
Place `flashchip_contents` allocation next to the code that initialises the newly-allocated buffer. This also avoids leaking it if the handling of `spi_status` fails. Change-Id: Ie907ac88dfe4ca018c97d9ce6ce042b4ffacf36a Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54908 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'rayer_spi.c')
0 files changed, 0 insertions, 0 deletions