]> err.no Git - linux-2.6/commit
[SCSI] sas_ata: sas_ata_qc_issue should return AC_ERR_*
authorDarrick J. Wong <djwong@us.ibm.com>
Tue, 30 Jan 2007 09:18:38 +0000 (01:18 -0800)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 18 Jul 2007 16:15:05 +0000 (11:15 -0500)
commit35a7f2f698d309cc50d98e56312dd907427b7ba4
treec874f6729e7651f47ff8496ca739c71b3c16bc5a
parent3eb7a51a3ae0ed0227e051ecf75199fccbb4cc73
[SCSI] sas_ata: sas_ata_qc_issue should return AC_ERR_*

The sas_ata_qc_issue function was incorrectly written to return error
codes such as -ENOMEM.  Since libata OR's qc->err_mask with the
return value, It is necessary to make my code return one of the
AC_ERR_ codes instead.  For now, use AC_ERR_SYSTEM because an error
here means that the OS couldn't send the command to the controller.

If anybody has a suggestion for a better AC_ERR_ code to use, please
suggest it.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/libsas/sas_ata.c