Dan Williams 6ef1b512f4 [SCSI] libsas: fix taskfile corruption in sas_ata_qc_fill_rtf
fill_result_tf() grabs the taskfile flags from the originating qc which
sas_ata_qc_fill_rtf() promptly overwrites.  The presence of an
ata_taskfile in the sata_device makes it tempting to just copy the full
contents in sas_ata_qc_fill_rtf().  However, libata really only wants
the fis contents and expects the other portions of the taskfile to not
be touched by ->qc_fill_rtf.  To that end store a fis buffer in the
sata_device and use ata_tf_from_fis() like every other ->qc_fill_rtf()
implementation.

Cc: <stable@vger.kernel.org>
Reported-by: Praveen Murali <pmurali@logicube.com>
Tested-by: Praveen Murali <pmurali@logicube.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-07-08 09:49:14 +01:00
..
2012-03-22 12:55:29 -07:00
2012-02-19 08:08:58 -06:00
2012-05-23 09:40:09 +01:00
2012-02-19 08:08:58 -06:00
2009-12-30 12:23:27 -08:00
2009-03-12 12:58:06 -05:00
2007-10-12 14:51:56 -04:00
2006-04-14 15:47:45 -05:00
2007-10-12 14:37:50 -04:00
2005-04-16 15:20:36 -07:00
2010-03-12 15:53:10 -08:00