diff options
author | Vlad Dogaru <vdogaru@nvidia.com> | 2025-01-02 20:14:11 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-01-06 16:33:41 -0800 |
commit | a105db854cf2e495caaa17f00ac0321b503def9b (patch) | |
tree | 2bdf13072988ce34f986d189ffe88a06c94e5d68 /scripts/lib/kdoc/kdoc_parser.py | |
parent | be482f1d10da781db9445d2753c1e3f1fd82babf (diff) |
net/mlx5: HWS, handle returned error value in pool alloc
Handle all negative return values as errors, not just -1.
The code previously treated -ENOMEM (and potentially other negative
values) as valid segment numbers, leading to incorrect behavior.
This fix ensures that any negative return value is treated as an error.
Signed-off-by: Vlad Dogaru <vdogaru@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250102181415.1477316-13-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions