[PATCH] libata: determine the err_mask when the error is found
authorAlbert Lee <albertcc@tw.ibm.com>
Mon, 5 Dec 2005 07:40:15 +0000 (15:40 +0800)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 6 Dec 2005 09:49:23 +0000 (04:49 -0500)
commit1c8489840e6b080e810e588423c1b6dd5913cf18
tree3b0061fc1f571570e8ddf6069277b497a951f385
parenta22e2eb0710798009b8e696ae911aef745089dd6
[PATCH] libata: determine the err_mask when the error is found

  - move "qc->err_mask |= AC_ERR_ATA_BUS" to where the error is found
  - add "assert(qc->err_mask)" to ata_pio_error() to make sure qc->err_mask was available when we enter the error state

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
============
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c