net/mlx5: Allocate root ns memory using kzalloc to match kfree
authorParav Pandit <parav@mellanox.com>
Fri, 10 May 2019 15:40:08 +0000 (10:40 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 29 May 2019 01:25:42 +0000 (18:25 -0700)
commit25fa506b70cadb580c1e9cbd836d6417276d4bcd
treedf0c2bfb79ad2a9b1733d8fa0e08a954a79be244
parent9414277a5df3669c67e818708c0f881597e0118e
net/mlx5: Allocate root ns memory using kzalloc to match kfree

root ns is yet another fs core node which is freed using kfree() by
tree_put_node().
Rest of the other fs core objects are also allocated using kmalloc
variants.

However, root ns memory is allocated using kvzalloc().
Hence allocate root ns memory using kzalloc().

Fixes: 2530236303d9e ("net/mlx5_core: Flow steering tree initialization")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c