net/mlx5: Eswitch, Use 'kvfree()' for memory allocated by 'kvzalloc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 17 May 2018 00:49:01 +0000 (17:49 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 17 May 2018 00:49:01 +0000 (17:49 -0700)
commite574978ae52a3fb1346bc37de2f2221dd878c065
treee33d815adf2ce33bca646aedd70c06b5aa6b1d01
parenta5898e97f01acfbcafe9e90196b1c811a46ebf44
net/mlx5: Eswitch, Use 'kvfree()' for memory allocated by 'kvzalloc()'

When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to
free it.

Fixes: fed9ce22bf8ae ("net/mlx5: E-Switch, Add API to create vport rx rules")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c