projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f901e
)
net/mlx4_core: Fix the slave_id out-of-range test in mlx4_eq_int
author
Jack Morgenstein
<
[email protected]
>
Wed, 30 May 2012 09:14:50 +0000
(09:14 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 31 May 2012 22:18:15 +0000
(18:18 -0400)
Ths fixes the comparison in the FLR (Function Level Reset) event case.
Signed-off-by: Jack Morgenstein <
[email protected]
>
Reviewed-by: Or Gerlitz <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/eq.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/eq.c
b/drivers/net/ethernet/mellanox/mlx4/eq.c
index 3b6f8efbf141278e8ad0958df64d7a852cf933fa..bce98d9c0039b87e74f8d7b7fbd9db3b0281d0bb 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/eq.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/eq.c
@@
-426,7
+426,7
@@
static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)
mlx4_dbg(dev, "FLR event for slave: %d\n", flr_slave);
- if (flr_slave > dev->num_slaves) {
+ if (flr_slave >
=
dev->num_slaves) {
mlx4_warn(dev,
"Got FLR for unknown function: %d\n",
flr_slave);