diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-05-02 16:07:11 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-05 13:06:17 +0000 |
commit | 8bbb764818f8ebf71bd14bd6ff90ad233646cc3b (patch) | |
tree | 907e51e094d3428ddacb0af2a0de5541777dda6b /chipset_enable.c | |
parent | 757e89243efd7e783923d486c542a692072e0111 (diff) | |
download | flashrom-8bbb764818f8ebf71bd14bd6ff90ad233646cc3b.tar.gz flashrom-8bbb764818f8ebf71bd14bd6ff90ad233646cc3b.tar.bz2 flashrom-8bbb764818f8ebf71bd14bd6ff90ad233646cc3b.zip |
spi95: Check for success before using send_command's returned data
If the transfer failed, the data might be invalid.
Change-Id: I3ad9daa00a54e2a3954983cec91b6685f1a98880
Found-By: Coverity Scan #1405870
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/40970
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'chipset_enable.c')
0 files changed, 0 insertions, 0 deletions