commit | 328898a911438ab4e133610e0c901d00264624eb | [log] [tgz] |
---|---|---|
author | Angel Pons <th3fanbus@gmail.com> | Tue May 25 12:56:18 2021 +0200 |
committer | Nico Huber <nico.h@gmx.de> | Thu Jan 05 16:15:22 2023 +0000 |
tree | 1f700788e8861ef176d67bb4c7615f7d4cb05c5b | |
parent | 02b9ae240f7f7ea4a8f7c723c128a415a384ce02 [diff] |
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> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/54908 Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71362 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>