net/mlx5: E-Switch, Fix an Oops in error handling code
stable inclusion from stable-v5.10.177 commit 5eadc80328298ef7beaaf0cd96791667d3b485ca category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5eadc80328298ef7beaaf0cd96791667d3b485ca -------------------------------- [ Upstream commit 640fcdbc ] The error handling dereferences "vport". There is nothing we can do if it is an error pointer except returning the error code. Fixes: 133dcfc5 ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit 4b18311f)
Loading
Please sign in to comment