diff options
author | Santosh Nayak <santoshprasadnayak@gmail.com> | 2012-03-12 22:58:24 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-17 05:20:44 (GMT) |
commit | 06d6c1087605b38342eb20e74b0cacb8b71f5086 (patch) | |
tree | 57533b01a509a7d79c264400ceac83aaba80e5b7 /sound/oss/v_midi.c | |
parent | 50cdc8fc4007cf773cad710186d253612b83cc72 (diff) | |
download | linux-fsl-qoriq-06d6c1087605b38342eb20e74b0cacb8b71f5086.tar.xz |
netxen: qlogic ethernet : Fix endian bug.
Change the datatype of "ip_addr" to __be32 as 'ip' should be in
big endian format.
Adapter needs "ip address" in big endian format stored at lower 32bit
of req.word[1]. netxen_config_ipaddr() now receives 'ip' in big endian
format. To satisfy adapter's need, use memcpy() to copy byte by byte
of 'ip' into lower 32bit of req.word[1].
Mac address and serial number of adapter need to be in little endian format.
Change the data type of the related variables to __le32 / __le64 or cast it
explicitly to __le32 / __le64 depending upon the requirement.
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/oss/v_midi.c')
0 files changed, 0 insertions, 0 deletions