summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/drivers/net/netpoll_basic.py
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2025-07-29 19:37:12 +0900
committerDamien Le Moal <dlemoal@kernel.org>2025-07-31 12:56:11 +0900
commitd2be9ea9a75550a35c5127a6c2633658bc38c76b (patch)
tree41f045dd9df4b406130a043fe020f96d06ffaed5 /tools/testing/selftests/drivers/net/netpoll_basic.py
parentcf3fc037623c54de48d2ec1a1ee686e2d1de2d45 (diff)
ata: libata-scsi: Return aborted command when missing sense and result TF
ata_gen_ata_sense() is always called for a failed qc missing sense data so that a sense key, code and code qualifier can be generated using ata_to_sense_error() from the qc status and error fields of its result task file. However, if the qc does not have its result task file filled, ata_gen_ata_sense() returns early without setting a sense key. Improve this by defaulting to returning ABORTED COMMAND without any additional sense code, since we do not know the reason for the failure. The same fix is also applied in ata_gen_passthru_sense() with the additional check that the qc failed (qc->err_mask is set). Fixes: 816be86c7993 ("ata: libata-scsi: Check ATA_QCFLAG_RTF_FILLED before using result_tf") Cc: stable@vger.kernel.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/testing/selftests/drivers/net/netpoll_basic.py')
0 files changed, 0 insertions, 0 deletions