/[linux-patches]/genpatches-2.6/tags/2.6.32-15/2500_libata-fix-truncated-LBA48-ret-vals.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.32-15/2500_libata-fix-truncated-LBA48-ret-vals.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1735 - (show annotations) (download)
Wed Aug 4 11:25:09 2010 UTC (4 years, 4 months ago) by mpagano
File size: 1182 byte(s)
2.6.32-15 release
1 From: Douglas Gilbert <dgilbert@interlog.com>
2 Date: Mon, 1 Feb 2010 18:11:38 +0000 (-0500)
3 Subject: libata-scsi passthru: fix bug which truncated LBA48 return values
4 X-Git-Tag: v2.6.33-rc7~5^2~3
5 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=bc496ed00ab1411d3efaf295b72e0c9eb343e1a3
6
7 libata-scsi passthru: fix bug which truncated LBA48 return values
8
9 Fix assignment which overwrote SAT ATA PASS-THROUGH command EXTEND
10 bit setting (ATA_TFLAG_LBA48)
11
12 Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
13 Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
14 ---
15
16 diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
17 index f4ea5a8..d096fbc 100644
18 --- a/drivers/ata/libata-scsi.c
19 +++ b/drivers/ata/libata-scsi.c
20 @@ -2875,7 +2875,7 @@ static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc)
21 * write indication (used for PIO/DMA setup), result TF is
22 * copied back and we don't whine too much about its failure.
23 */
24 - tf->flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
25 + tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
26 if (scmd->sc_data_direction == DMA_TO_DEVICE)
27 tf->flags |= ATA_TFLAG_WRITE;
28

  ViewVC Help
Powered by ViewVC 1.1.20