]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix kernel Oops (mem corruption) when working with more than 80 VFs
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 2 Feb 2015 13:18:42 +0000 (15:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2015 03:38:04 +0000 (19:38 -0800)
commit879ba15eb294576863170e5f039fb2e7cdb6cc98
tree2c2efb6be3aa538a17a5d7e701fcb5a005c399ed
parent7bc4d4ad2439eb8e9684e62fd882bf6f585e3443
net/mlx4_core: Fix kernel Oops (mem corruption) when working with more than 80 VFs

Commit 4590fb17fa7e (net/mlx4_core: Support more than 64 VFs) was meant to
allow up to 126 VFs.  However, due to leaving MLX4_MFUNC_MAX too low, using
more than 80 VFs resulted in memory corruptions (and Oopses) when more than
80 VFs were requested. In addition, the number of slaves was left too high.

This commit fixes these issues.

Fixes: 4590fb17fa7e ("net/mlx4_core: Support more than 64 VFs")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mlx4.h
include/linux/mlx4/device.h