net/mlx5e: Replace kfree with kvfree when free vhca stats
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 16 Sep 2019 10:17:33 +0000 (13:17 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:18 +0000 (16:27 -0700)
commit5dfb6335cbecbd59040275c8396c2d0af0bbd549
tree4259f697c915028d3a9ad5fadd83d49374b127c1
parent752d3dc06d6936d5a357a18b6b51d91c7e134e88
net/mlx5e: Replace kfree with kvfree when free vhca stats

Memory allocated by kvzalloc should be freed by kvfree.

Fixes: cef35af34d6d ("net/mlx5e: Add mlx5e HV VHCA stats agent")
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c