diff options
author | 2024-07-02 02:47:35 +0000 | |
---|---|---|
committer | 2024-07-03 10:51:41 +0200 | |
commit | 816be86c7993d3c5832c3017c0056297e86f978c (patch) | |
tree | 140505fb977f8bbd4f06df542aec378d1f006eb9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ata: libata-core: Set ATA_QCFLAG_RTF_FILLED in fill_result_tf() (diff) | |
download | linux-rng-816be86c7993d3c5832c3017c0056297e86f978c.tar.xz linux-rng-816be86c7993d3c5832c3017c0056297e86f978c.zip |
ata: libata-scsi: Check ATA_QCFLAG_RTF_FILLED before using result_tf
qc->result_tf contents are only valid when the ATA_QCFLAG_RTF_FILLED flag
is set. The ATA_QCFLAG_RTF_FILLED flag should be always set for commands
that failed or for commands that have the ATA_QCFLAG_RESULT_TF flag set.
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Link: https://lore.kernel.org/r/20240702024735.1152293-8-ipylypiv@google.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions