projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx4_core: Fix endianness bug in set_param_l
[cascardo/linux.git]
/
drivers
/
net
/
ethernet
/
mellanox
/
mlx4
/
mlx4.h
diff --git
a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index
cf88334
..
d738454
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/
drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@
-1235,7
+1235,7
@@
int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);
static inline void set_param_l(u64 *arg, u32 val)
{
- *
((u32 *)arg) =
val;
+ *
arg = (*arg & 0xffffffff00000000ULL) | (u64)
val;
}
static inline void set_param_h(u64 *arg, u32 val)