diff options
| author | 2026-05-13 09:27:37 +0300 | |
|---|---|---|
| committer | 2026-05-14 18:33:48 -0700 | |
| commit | c9d08c8c4c5006d71b3c3c3c0dc41ebc46931951 (patch) | |
| tree | 5aac30f105756ea82be7643404e8f4ce5ffe4090 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | tls: Preserve sk_err across recvmsg() when data has been copied (diff) | |
net/mlx5e: Don't leak RSS context in case of error
If mlx5e_rx_res_rss_set_rxfh() fails during mlx5e_create_rxfh_context(),
the RSS context is not cleaned up.
This leaves a stale entry in 'res->rss[rss_idx]' that occupies a context
slot.
Destroy the RSS context before returning the error.
Fixes: 6c2509d44636 ("net/mlx5e: Add error flow for ethtool -X command")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260513062737.333259-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
