]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: E-Switch, Fix an Oops in error handling code
authorDan Carpenter <error27@gmail.com>
Mon, 27 Feb 2023 11:16:10 +0000 (14:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:08 +0000 (12:49 +0200)
commitc4c977935b2fc60084b3735737d17a06e7ba1bd0
tree1617b4304a1792aaa162e877bb78346ee1c48e3d
parentfba0b70e8cf786b7d9efc3cae13eb42f50c03b3e
net/mlx5: E-Switch, Fix an Oops in error handling code

[ Upstream commit 640fcdbcf27fc62de9223f958ceb4e897a00e791 ]

The error handling dereferences "vport".  There is nothing we can do if
it is an error pointer except returning the error code.

Fixes: 133dcfc577ea ("net/mlx5: E-Switch, Alloc and free unique metadata for match")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c