summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioc.c
diff options
context:
space:
mode:
authorVijaya Mohan Guvva <vmohan@brocade.com>2013-05-13 11:33:32 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-06-27 01:55:27 +0200
commitba1340788ff3023b1b083db96d82f546b8401ffd (patch)
tree7dad76147a4cdb6ab8a11755c086da5fd4519207 /drivers/scsi/bfa/bfa_ioc.c
parent[SCSI] bfa: Fix bug_on condition in RPSC rsp handling (diff)
downloadlinux-ba1340788ff3023b1b083db96d82f546b8401ffd.tar.xz
linux-ba1340788ff3023b1b083db96d82f546b8401ffd.zip
[SCSI] bfa: fix endianess issue for firmware stats
Fix endianess issue on Big-endian architecture for firmware statistics Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.c')
-rw-r--r--drivers/scsi/bfa/bfa_ioc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c
index c31cb3ca07eb..a4f37414774e 100644
--- a/drivers/scsi/bfa/bfa_ioc.c
+++ b/drivers/scsi/bfa/bfa_ioc.c
@@ -1858,7 +1858,7 @@ bfa_ioc_smem_read(struct bfa_ioc_s *ioc, void *tbuf, u32 soff, u32 sz)
bfa_trc(ioc, len);
for (i = 0; i < len; i++) {
r32 = bfa_mem_read(ioc->ioc_regs.smem_page_start, loff);
- buf[i] = be32_to_cpu(r32);
+ buf[i] = swab32(r32);
loff += sizeof(u32);
/*