aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/libata-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index df31deac5c82..0ddaf43d68c6 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5024,8 +5024,6 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
5024 struct ata_device *dev = qc->dev; 5024 struct ata_device *dev = qc->dev;
5025 struct ata_eh_info *ehi = &dev->link->eh_info; 5025 struct ata_eh_info *ehi = &dev->link->eh_info;
5026 5026
5027 WARN_ON_ONCE(ap->pflags & ATA_PFLAG_FROZEN);
5028
5029 if (unlikely(qc->err_mask)) 5027 if (unlikely(qc->err_mask))
5030 qc->flags |= ATA_QCFLAG_FAILED; 5028 qc->flags |= ATA_QCFLAG_FAILED;
5031 5029
@@ -5038,6 +5036,8 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
5038 } 5036 }
5039 } 5037 }
5040 5038
5039 WARN_ON_ONCE(ap->pflags & ATA_PFLAG_FROZEN);
5040
5041 /* read result TF if requested */ 5041 /* read result TF if requested */
5042 if (qc->flags & ATA_QCFLAG_RESULT_TF) 5042 if (qc->flags & ATA_QCFLAG_RESULT_TF)
5043 fill_result_tf(qc); 5043 fill_result_tf(qc);