Skip to content

Commit

Permalink
[SCSI] bfa: fix endianess issue for firmware stats
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vijaya Mohan Guvva authored and James Bottomley committed Jun 26, 2013
1 parent 36ec971 commit ba13407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/bfa/bfa_ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit ba13407

Please sign in to comment.