diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2008-04-16 18:27:45 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-17 13:57:17 -0400 |
commit | 17b7a8de3bf1eb2cba14d5c8d919e55d511d8a71 (patch) | |
tree | 1518f9058e45923cdc9e3826d3e25d1fc52f5df8 /drivers/scsi/libsas | |
parent | ee95a16d3950367d32beb6ffed287666631dbda9 (diff) |
[SCSI] libsas: fix endianness bug in sas_ata
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libsas')
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index b0e5ac372a32..06ad2fa3fa4c 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -698,7 +698,7 @@ static int sas_discover_sata_dev(struct domain_device *dev) | |||
698 | /* incomplete response */ | 698 | /* incomplete response */ |
699 | SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to " | 699 | SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to " |
700 | "dev %llx\n", SAS_ADDR(dev->sas_addr)); | 700 | "dev %llx\n", SAS_ADDR(dev->sas_addr)); |
701 | if (!le16_to_cpu(identify_x[83] & (1<<6))) | 701 | if (!(identify_x[83] & cpu_to_le16(1<<6))) |
702 | goto cont1; | 702 | goto cont1; |
703 | res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES, | 703 | res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES, |
704 | ATA_FEATURE_PUP_STBY_SPIN_UP, | 704 | ATA_FEATURE_PUP_STBY_SPIN_UP, |