aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_mv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 0c25f52249df..181f02127410 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -1628,6 +1628,12 @@ static struct ata_queued_cmd *mv_get_active_qc(struct ata_port *ap)
1628 if (pp->pp_flags & MV_PP_FLAG_NCQ_EN) 1628 if (pp->pp_flags & MV_PP_FLAG_NCQ_EN)
1629 return NULL; 1629 return NULL;
1630 qc = ata_qc_from_tag(ap, ap->link.active_tag); 1630 qc = ata_qc_from_tag(ap, ap->link.active_tag);
1631 if (qc) {
1632 if (qc->tf.flags & ATA_TFLAG_POLLING)
1633 qc = NULL;
1634 else if (!(qc->flags & ATA_QCFLAG_ACTIVE))
1635 qc = NULL;
1636 }
1631 if (qc && (qc->tf.flags & ATA_TFLAG_POLLING)) 1637 if (qc && (qc->tf.flags & ATA_TFLAG_POLLING))
1632 qc = NULL; 1638 qc = NULL;
1633 return qc; 1639 return qc;