aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-sff.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r--drivers/ata/libata-sff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index cfa9ed179d9c..9bbc8749620a 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -775,7 +775,7 @@ void ata_bmdma_drive_eh(struct ata_port *ap, ata_prereset_fn_t prereset,
775 * really a timeout event, adjust error mask and 775 * really a timeout event, adjust error mask and
776 * cancel frozen state. 776 * cancel frozen state.
777 */ 777 */
778 if (qc->err_mask == AC_ERR_TIMEOUT && host_stat & ATA_DMA_ERR) { 778 if (qc->err_mask == AC_ERR_TIMEOUT && (host_stat & ATA_DMA_ERR)) {
779 qc->err_mask = AC_ERR_HOST_BUS; 779 qc->err_mask = AC_ERR_HOST_BUS;
780 thaw = 1; 780 thaw = 1;
781 } 781 }