]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: libata-core: improve tag checks in ata_qc_issue()
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 18 Feb 2026 23:11:35 +0000 (08:11 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 24 Feb 2026 00:40:58 +0000 (09:40 +0900)
commit6158e34e594dd150f3f2df81a1b0fe636e156757
tree2cbb2afc5ce4bee75da56138e2ebcec484ae7d8b
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
ata: libata-core: improve tag checks in ata_qc_issue()

Make sure to check that the tag of a queued command is valid when
ata_qc_issue() is called, and fail the QC if the tag is not valid, or if
there is an on-going non-NCQ command already on the link.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/ata/libata-core.c