diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2008-04-16 23:27:45 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-17 12:57:17 -0500 |
commit | 17b7a8de3bf1eb2cba14d5c8d919e55d511d8a71 (patch) | |
tree | 1518f9058e45923cdc9e3826d3e25d1fc52f5df8 /drivers/scsi/libsas/sas_ata.c | |
parent | ee95a16d3950367d32beb6ffed287666631dbda9 (diff) | |
download | op-kernel-dev-17b7a8de3bf1eb2cba14d5c8d919e55d511d8a71.zip op-kernel-dev-17b7a8de3bf1eb2cba14d5c8d919e55d511d8a71.tar.gz |
[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/sas_ata.c')
-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 b0e5ac3..06ad2fa 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) /* incomplete response */ SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to " "dev %llx\n", SAS_ADDR(dev->sas_addr)); - if (!le16_to_cpu(identify_x[83] & (1<<6))) + if (!(identify_x[83] & cpu_to_le16(1<<6))) goto cont1; res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES, ATA_FEATURE_PUP_STBY_SPIN_UP, |