mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
net/mlx5: E-Switch, Fix an Oops in error handling code
[ Upstream commit640fcdbcf2] The error handling dereferences "vport". There is nothing we can do if it is an error pointer except returning the error code. Fixes:133dcfc577("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>
This commit is contained in:
parent
c30e9f09f4
commit
1a9853a743
1 changed files with 1 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue