]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Fix some error pointer dereferences
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Jun 2020 17:54:36 +0000 (20:54 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Jun 2020 22:38:08 +0000 (15:38 -0700)
commitbd72fdc9eb0aa00ac9528ff9a2193e579b62bbb0
tree5c97756927094a087738999ec8bab50be1d0103b
parentb7c011fd08f0a0e83047e9e3fecee9eb30e1a470
net/mlx5: E-Switch, Fix some error pointer dereferences

We can't leave "counter" set to an error pointer.  Otherwise either it
will lead to an error pointer dereference later in the function or it
leads to an error pointer dereference when we call mlx5_fc_destroy().

Fixes: 8fdf6e9420dee ("net/mlx5: E-Switch, Refactor eswitch ingress acl codes")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy.c