summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorJack Morgenstein2013-03-07 04:46:54 +0100
committerDavid S. Miller2013-03-07 21:52:03 +0100
commite7dbeba85600aa2c8daf99f8f53d9ad27e88b810 (patch)
treef1e7a199ef86154b0ae262c13c1b661cf86f97e8 /virt
parentnet/mlx4_core: Turn off device-managed FS bit in dev-cap wrapper if DMFS is n... (diff)
downloadkernel-qcow2-linux-e7dbeba85600aa2c8daf99f8f53d9ad27e88b810.tar.gz
kernel-qcow2-linux-e7dbeba85600aa2c8daf99f8f53d9ad27e88b810.tar.xz
kernel-qcow2-linux-e7dbeba85600aa2c8daf99f8f53d9ad27e88b810.zip
net/mlx4_core: Fix endianness bug in set_param_l
The set_param_l function assumes casting a u64 pointer to a u32 pointer allows to access the lower 32bits, but it results in writing the upper 32 bits on big endian systems. The fixed function reads the upper 32 bits of the 64 argument, and or's them with the 32 bits of the 32-bit value passed to the function. Since this is now a "read-modify-write" operation, we got many "unintialized variable" warnings which needed to be fixed as well. Reported-by: Alexander Schmidt <alexschm@de.ibm.com>. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions