net/mlx5: E-Switch, Use the correct free() function
authorOr Gerlitz <[email protected]>
Thu, 9 Jun 2016 21:07:34 +0000 (00:07 +0300)
committerDavid S. Miller <[email protected]>
Fri, 10 Jun 2016 05:06:26 +0000 (22:06 -0700)
commit3fe3d819d5015d56d0d7289ae16db5e612640c5b
tree5232b2b31f55f84c165c33fb1208e6bcb21a4ca5
parentbd02ef8eec0b98abe6d5efe280c87903b2eb9874
net/mlx5: E-Switch, Use the correct free() function

We must use kvfree() for something that could have been allocated with vzalloc(),
do that.

Fixes: 5742df0f7dbe ('net/mlx5: E-Switch, Introduce VST vport ingress/egress ACLs')
Fixes: 86d722ad2c3b ('net/mlx5: Use flow steering infrastructure for mlx5_en')
Signed-off-by: Or Gerlitz <[email protected]>
Reported-by: Ilya Lesokhin <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c