]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix function calculation for page trees
authorDaniel Jurgens <danielj@nvidia.com>
Mon, 1 Feb 2021 16:11:10 +0000 (18:11 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 2 Feb 2021 07:02:01 +0000 (23:02 -0800)
commit075648323268f4ec55370f99012343f0a13ff91b
treedf67283cecf8c5ba8a81c67bca3bf99a18370d50
parent11a7ccc74cd9b311542195f177099ccc75f38146
net/mlx5: Fix function calculation for page trees

The function calculation always results in a value of 0. This works
generally, but when the release all pages feature is enabled it will
result in crashes.

Fixes: 9bb0189d6ae5 ("net/mlx5: Maintain separate page trees for ECPF and PF functions")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c