Browse Source

[PATCH] ahci: fix err_mask setting in ahci_host_intr

In ahci_host_intr err_mask is determined from IRQ status but never
used.  This patch sets qc->err_mask to the determined err_mask.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Tejun Heo 19 years ago
parent
commit
284b6481cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/scsi/ahci.c

+ 1 - 1
drivers/scsi/ahci.c

@@ -721,7 +721,7 @@ static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
 		ahci_restart_port(ap, status);
 		ahci_restart_port(ap, status);
 
 
 		if (qc) {
 		if (qc) {
-			qc->err_mask |= AC_ERR_OTHER;
+			qc->err_mask |= err_mask;
 			ata_qc_complete(qc);
 			ata_qc_complete(qc);
 		}
 		}
 	}
 	}