git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d76222
)
[SCSI] bfa: Fix endian bug in bfad_iocmd_debug_fw_core().
author
Santosh Nayak
<santoshprasadnayak@gmail.com>
Tue, 6 Mar 2012 17:06:59 +0000
(22:36 +0530)
committer
James Bottomley
<JBottomley@Parallels.com>
Tue, 27 Mar 2012 07:26:35 +0000
(08:26 +0100)
Casting pointer from native data type to other type is
endian-sensitive.
"iocmd->offset" is 64 bit but we use only first 32 bit.
It works in little-endian system but in big-endian system
it will break.
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Acked-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
No differences found