diff options
| author | Gavi Teitz <gavi@mellanox.com> | 2019-03-11 11:56:34 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 08:38:42 +0200 |
| commit | 9441317513b726864375b3d26c98d371417a13ec (patch) | |
| tree | ea0a4ee76b1e1c4adbb937c72908aa581cde1bb2 /include/linux/parser.h | |
| parent | 0516ef27ddba5d46c6879fe5136fbdef441d9047 (diff) | |
net/mlx5e: Fix error handling when refreshing TIRs
[ Upstream commit bc87a0036826a37b43489b029af8143bd07c6cca ]
Previously, a false positive would be caught if the TIRs list is
empty, since the err value was initialized to -ENOMEM, and was only
updated if a TIR is refreshed. This is resolved by initializing the
err value to zero.
Fixes: b676f653896a ("net/mlx5e: Refactor refresh TIRs")
Signed-off-by: Gavi Teitz <gavi@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/parser.h')
0 files changed, 0 insertions, 0 deletions
