+21
−0
Loading
stable inclusion from stable-v6.6.51 commit 872f86e1757bbb0a334ee739b824e47c448f5ebc category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAYRVR Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=872f86e1757bbb0a334ee739b824e47c448f5ebc -------------------------------- [ Upstream commit 816be86c7993d3c5832c3017c0056297e86f978c ] 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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>