diff options
| author | Lama Kayal <lkayal@nvidia.com> | 2025-08-25 17:34:26 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-04 16:55:40 +0200 |
| commit | 3668ba8832f1fc4de78e6624d7a5e47a0f88dd6d (patch) | |
| tree | a000981696b1cd51a293c282dbfe14fc8c30b064 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 051fd8576a2e4e95d5870c5c9f8679c5b16882e4 (diff) | |
| download | kernel-3668ba8832f1fc4de78e6624d7a5e47a0f88dd6d.tar.gz | |
net/mlx5: HWS, Fix uninitialized variables in mlx5hws_pat_calc_nop error flow
[ Upstream commit 24b6e53140475b56cadcccd4e82a93aa5bacf1eb ]
In mlx5hws_pat_calc_nop(), src_field and dst_field are passed to
hws_action_modify_get_target_fields() which should set their values.
However, if an invalid action type is encountered, these variables
remain uninitialized and are later used to update prev_src_field
and prev_dst_field.
Initialize both variables to INVALID_FIELD to ensure they have
defined values in all code paths.
Fixes: 01e035fd0380 ("net/mlx5: HWS, handle modify header actions dependency")
Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250825143435.598584-4-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
