diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-05-02 16:07:11 +0200 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-09-29 17:04:47 +0000 |
commit | b57f48f77f367c43cd83878d92aa55de151c0798 (patch) | |
tree | d2b42aa861392afb20d841ec86a1c860abd90a05 /satasii.c | |
parent | b428c319ed629bef50e7e154c472635f68ea8edc (diff) | |
download | flashrom-b57f48f77f367c43cd83878d92aa55de151c0798.tar.gz flashrom-b57f48f77f367c43cd83878d92aa55de151c0798.tar.bz2 flashrom-b57f48f77f367c43cd83878d92aa55de151c0798.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>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67862
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'satasii.c')
0 files changed, 0 insertions, 0 deletions